From e449011492ae89bb64e656fa16855a20da2e9590 Mon Sep 17 00:00:00 2001 From: maximthomas <maxim.thomas@gmail.com> Date: Wed, 28 Feb 2018 11:31:03 +0000 Subject: [PATCH] Set current version in Docker automatically --- opendj-packages/opendj-docker/Dockerfile | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opendj-packages/opendj-docker/Dockerfile b/opendj-packages/opendj-docker/Dockerfile index 3c517f1..2c31933 100644 --- a/opendj-packages/opendj-docker/Dockerfile +++ b/opendj-packages/opendj-docker/Dockerfile @@ -1,6 +1,6 @@ FROM java:8 -MAINTAINER Open Identity Platform <open-identity-platform@googlegroups.com> +MAINTAINER Open Identity Platform Community <open-identity-platform-opendj@googlegroups.com> ENV PORT 1389 @@ -12,13 +12,13 @@ ENV ROOT_PASSWORD password -ENV git_version 4.1.1 +ENV VERSION @project_version@ WORKDIR /opt RUN apt-get install -y wget unzip -RUN wget --quiet https://github.com/OpenIdentityPlatform/OpenDJ/releases/download/$git_version/opendj-$git_version.zip && unzip opendj-$git_version.zip && rm -r opendj-$git_version.zip +RUN wget --quiet https://github.com/OpenIdentityPlatform/OpenDJ/releases/download/$VERSION/opendj-$VERSION.zip && unzip opendj-$VERSION.zip && rm -r opendj-$VERSION.zip RUN /opt/opendj/setup --cli -p $PORT --ldapsPort $LDAPS_PORT --enableStartTLS --generateSelfSignedCertificate --baseDN "$BASE_DN" -h localhost --rootUserDN "$ROOT_USER_DN" --rootUserPassword $ROOT_PASSWORD --acceptLicense --no-prompt --doNotStart -- Gitblit v1.10.0