2018-02-02 02:36:09 +07:00
|
|
|
FROM openjdk:8-jre-alpine
|
|
|
|
|
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VCS_REF
|
|
|
|
ARG VERSION
|
|
|
|
|
2018-09-01 23:50:20 +07:00
|
|
|
LABEL maintainer="CrazyMax" \
|
|
|
|
org.label-schema.build-date=$BUILD_DATE \
|
2018-02-02 02:36:09 +07:00
|
|
|
org.label-schema.name="jetbrains-license-server" \
|
2018-02-06 04:28:33 +07:00
|
|
|
org.label-schema.description="JetBrains License Server image based on Alpine Linux" \
|
2018-02-02 02:36:09 +07:00
|
|
|
org.label-schema.version=$VERSION \
|
|
|
|
org.label-schema.url="https://github.com/crazy-max/docker-jetbrains-license-server" \
|
|
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
|
|
org.label-schema.vcs-url="https://github.com/crazy-max/docker-jetbrains-license-server" \
|
|
|
|
org.label-schema.vendor="CrazyMax" \
|
|
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
|
2018-02-16 08:25:45 +07:00
|
|
|
RUN apk --update --no-cache add tzdata \
|
2018-02-02 02:36:09 +07:00
|
|
|
&& rm -rf /var/cache/apk/* /tmp/*
|
|
|
|
|
|
|
|
ENV JLS_PATH="/opt/jetbrains-license-server" \
|
2018-07-30 21:17:47 +07:00
|
|
|
JLS_VERSION="17437" \
|
|
|
|
JLS_SHA256="9f15c63e9f40e2bf399b503d77a53ad3e4ff5deefb5d8bf29fad6d281b4be4ca"
|
2018-02-02 02:36:09 +07:00
|
|
|
|
2018-02-02 02:43:54 +07:00
|
|
|
ADD entrypoint.sh /entrypoint.sh
|
|
|
|
|
2018-02-16 08:25:45 +07:00
|
|
|
RUN apk --update --no-cache add -t build-dependencies \
|
|
|
|
curl zip \
|
|
|
|
&& mkdir -p "$JLS_PATH" \
|
|
|
|
&& curl -L "https://download.jetbrains.com/lcsrv/license-server-installer.zip" -o "/tmp/jls.zip" \
|
|
|
|
&& echo "$JLS_SHA256 /tmp/jls.zip" | sha256sum -c - | grep OK \
|
|
|
|
&& unzip "/tmp/jls.zip" -d "$JLS_PATH" \
|
|
|
|
&& rm -f "/tmp/jls.zip" \
|
2018-02-02 02:36:09 +07:00
|
|
|
&& chmod a+x "$JLS_PATH/bin/license-server.sh" \
|
|
|
|
&& ln -sf "$JLS_PATH/bin/license-server.sh" "/usr/local/bin/license-server" \
|
2018-02-16 08:25:45 +07:00
|
|
|
&& chmod a+x /entrypoint.sh \
|
|
|
|
&& apk del build-dependencies \
|
|
|
|
&& rm -rf /var/cache/apk/* /tmp/*
|
2018-02-02 02:36:09 +07:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
VOLUME [ "/data" ]
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
2018-02-16 08:02:48 +07:00
|
|
|
CMD [ "/usr/local/bin/license-server", "run" ]
|