mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Kevin McCormack
06.20.2018 d8a7ce8ef6e77ed801b284783474c201247cbf50
Update Dockerfile

Use build arguments with default values instead of environment variables to allow customizing at build time.

This allows customizing like `docker build --build-arg BASE_DN="dc=mydomain,dc=net" --build-arg ROOT_PASSWORD="$ecret p@ssword".`

https://docs.docker.com/engine/reference/builder/#default-values
1 files modified
12 ■■■■ changed files
opendj-packages/opendj-docker/Dockerfile 12 ●●●● patch | view | raw | blame | history
opendj-packages/opendj-docker/Dockerfile
@@ -2,17 +2,17 @@
MAINTAINER Open Identity Platform Community <open-identity-platform-opendj@googlegroups.com>
ENV PORT 1389
ARG PORT=1389
ENV LDAPS_PORT 1636
ARG LDAPS_PORT=1636
ENV BASE_DN dc=example,dc=com
ARG BASE_DN="dc=example,dc=com"
ENV ROOT_USER_DN cn=Directory Manager
ARG ROOT_USER_DN="cn=Directory Manager"
ENV ROOT_PASSWORD password
ARG ROOT_PASSWORD=password
ENV VERSION @project_version@
ARG VERSION=@project_version@
WORKDIR /opt