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

maximthomas
22.07.2018 0e9db040336f05c8dbd6a9bc7978ac7ab4da4df9
Add Dockerfile
2 files added
31 ■■■■■ changed files
opendj-packages/opendj-docker/Dockerfile 23 ●●●●● patch | view | raw | blame | history
opendj-packages/opendj-docker/README.md 8 ●●●●● patch | view | raw | blame | history
opendj-packages/opendj-docker/Dockerfile
New file
@@ -0,0 +1,23 @@
FROM java:8
MAINTAINER Open Identity Platform <open-identity-platform@googlegroups.com>
WORKDIR /opt
RUN apt-get install -y wget unzip
RUN wget --quiet https://github.com/OpenIdentityPlatform/OpenDJ/releases/download/4.0.3/opendj-4.0.3.zip && unzip opendj-4.0.3.zip && rm -r opendj-4.0.3.zip
ENV PORT 1389
ENV LDAPS_PORT 1636
ENV BASE_DN dc=example,dc=com
ENV ROOT_USER_DN cn=Directory Manager
ENV ROOT_PASSWORD password
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
CMD ["/opt/opendj/bin/start-ds", "--nodetach"]
opendj-packages/opendj-docker/README.md
New file
@@ -0,0 +1,8 @@
# How-to:
Build docker image:
docker build . -t openidentityplatform/opendj
Run image
docker run -d -p 1389:1389 -p 1636:1636 -p 4444:4444 --name opendj openidentityplatform/opendj