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

maximthomas
28.31.2018 e449011492ae89bb64e656fa16855a20da2e9590
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM java:8
 
MAINTAINER Open Identity Platform Community <open-identity-platform-opendj@googlegroups.com>
 
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
 
ENV VERSION @project_version@
 
WORKDIR /opt
 
RUN apt-get install -y wget unzip
 
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
 
CMD ["/opt/opendj/bin/start-ds", "--nodetach"]