Skip to content

Commit

Permalink
Generate license in entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
joutvhu committed Aug 6, 2024
1 parent 15e36c9 commit a7bc832
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
11 changes: 2 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
FROM ubuntu:latest

RUN apt-get update && \
apt-get install -y bash git wget xxd bsdmainutils && \
apt-get install -y bash git wget xxd && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
wget --no-verbose -O /tmp/idea.tar.gz https://download.jetbrains.com/idea/ideaIU-2020.3.4.tar.gz && \
tar -xzf /tmp/idea.tar.gz -C /opt && \
mv /opt/idea* /opt/idea && \
rm /tmp/idea.tar.gz && \
mkdir -p "$(eval echo ~$USER)/.config/JetBrains/IntelliJIdea2020.3/eval" && \
cd "$(eval echo ~$USER)/.config/JetBrains/IntelliJIdea2020.3/eval" && \
printf %x $(echo -$(($(date +%s%N)/1000000))) > evaluation-date.txt && \
xxd -r -p evaluation-date.txt idea203.evaluation.key && \
rm evaluation-date.txt && \
hexdump -C idea203.evaluation.key && \
echo $(pwd)/idea203.evaluation.key
rm /tmp/idea.tar.gz

COPY entrypoint.sh /usr/local/bin/entrypoint.sh

Expand Down
7 changes: 6 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash

if [[ $# -ne 5 ]]; then
echo 'Exactly five parameters required: path, mark, settings, message, verify'
exit 1
Expand All @@ -11,6 +10,12 @@ settings=$3
message=$4
verify=$5

mkdir -p "/root/.config/JetBrains/IntelliJIdea2020.3/eval"
cd "/root/.config/JetBrains/IntelliJIdea2020.3/eval"
printf %x $(echo -$(($(date +%s%N)/1000000))) > evaluation-date.txt
xxd -r -p evaluation-date.txt idea203.evaluation.key
rm evaluation-date.txt

options="-r ."

if [[ "$settings" != "" ]]; then
Expand Down

0 comments on commit a7bc832

Please sign in to comment.