Set timezone through tzdata

This commit is contained in:
CrazyMax 2019-10-10 15:26:40 +02:00
parent 61de4e84a7
commit 3e9d114333
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 3 additions and 8 deletions

View File

@ -17,7 +17,8 @@ LABEL maintainer="CrazyMax" \
ENV JLS_PATH="/opt/jetbrains-license-server" \
JLS_VERSION="20308" \
JLS_SHA256="15cd436d41b1af8e273b8f8b037d654a9e9d9ca8a5f188e08426ca1024ba143a"
JLS_SHA256="15cd436d41b1af8e273b8f8b037d654a9e9d9ca8a5f188e08426ca1024ba143a" \
TZ="UTC"
COPY entrypoint.sh /entrypoint.sh
@ -44,4 +45,4 @@ ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "/usr/local/bin/license-server", "run" ]
HEALTHCHECK --interval=10s --timeout=5s \
CMD license-server status
CMD license-server status || exit 1

View File

@ -1,17 +1,11 @@
#!/bin/sh
TZ=${TZ:-UTC}
JLS_PATH="/opt/jetbrains-license-server"
JLS_LISTEN_ADDRESS="0.0.0.0"
JLS_PORT=8000
JLS_CONTEXT=${JLS_CONTEXT:-/}
JLS_ACCESS_CONFIG=${JLS_ACCESS_CONFIG:-/data/access-config.json}
# Timezone
echo "Setting timezone to ${TZ}..."
ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime
echo ${TZ} > /etc/timezone
# Init
echo "Initializing files and folders..."
mkdir -p /data/registration