Add JLS_CONTEXT env var

Ability to set a custom UID / GID
Timezone was not setted
No need of Nginx
Error while saving stats
This commit is contained in:
CrazyMax
2018-02-15 16:52:47 +01:00
parent d57796dbcf
commit 45a1cc0557
8 changed files with 63 additions and 64 deletions

View File

@@ -16,25 +16,25 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.schema-version="1.0"
RUN apk --update --no-cache add \
ca-certificates curl libressl nginx supervisor tzdata zip \
curl supervisor tzdata zip \
&& rm -rf /var/cache/apk/* /tmp/*
ENV JLS_PATH="/opt/jetbrains-license-server" \
JLS_VERSION="15802" \
JLS_SHA256="e0030be1fd06e2db19576363a388d8b84e7b33c9d48c54f0cfcdc032ddd96181"
JLS_SHA256="e0030be1fd06e2db19576363a388d8b84e7b33c9d48c54f0cfcdc032ddd96181" \
USERNAME="docker" \
UID=1000 GID=1000
ADD entrypoint.sh /entrypoint.sh
ADD assets /
RUN mkdir -p "$JLS_PATH" "/data/registration" "/run/nginx" \
RUN mkdir -p "$JLS_PATH" \
&& curl -L "https://download.jetbrains.com/lcsrv/license-server-installer.zip" -o "/tmp/lsi.zip" \
&& echo "$JLS_SHA256 /tmp/lsi.zip" | sha256sum -c - | grep OK \
&& unzip "/tmp/lsi.zip" -d "$JLS_PATH" \
&& rm -f "/tmp/lsi.zip" \
&& chmod a+x "$JLS_PATH/bin/license-server.sh" \
&& ln -sf "$JLS_PATH/bin/license-server.sh" "/usr/local/bin/license-server" \
&& ln -sf "/data/registration" "/root/.jb-license-server" \
&& touch "/data/access-config.json" \
&& chmod a+x /entrypoint.sh
EXPOSE 80