-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
51 lines (39 loc) · 1.39 KB
/
Dockerfile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# https://github.com/ghchinoy/forgerock-docker
FROM public.ecr.aws/docker/library/openjdk:11-jre-buster
WORKDIR /opt
RUN apt-get update -y && apt-get -y upgrade
RUN apt-get install -y wget unzip
RUN curl --silent -LO https://github.com/OpenIdentityPlatform/OpenDJ/releases/download/4.4.5/opendj-4.4.5.zip && unzip -q opendj-4.4.5.zip && rm -r opendj-4.4.5.zip
# Merritt data
COPY barebones.ldif /opt/barebones.ldif
# Entrypoint script
COPY start_import.sh /opt/start_import.sh
RUN chmod +x /opt/start_import.sh
# Import script
COPY import.sh /opt/opendj/import.sh
RUN chmod +x /opt/opendj/import.sh
# Self signed cert
COPY keystore /opt/opendj/keystore
COPY keystore.pin /opt/opendj/keystore.pin
WORKDIR /opt/opendj
RUN ./setup \
--cli \
--no-prompt \
--acceptLicense \
--backendType je \
--baseDN ou=uc3,dc=cdlib,dc=org \
--baseDN ou=healthcheck,dc=cdlib,dc=org \
--ldapPort 1389 \
--adminConnectorPort 4444 \
--rootUserDN cn=Directory\ Manager \
--rootUserPassword password \
--enableStartTLS \
--ldapsPort 1636 \
--useJavaKeystore /opt/opendj/keystore \
--keyStorePasswordFile /opt/opendj/keystore.pin \
--hostname ldap \
--noPropertiesFile
# Schema data
COPY 99-user.ldif /opt/opendj/config/schema/99-user.ldif
EXPOSE 1389 1636 4444
ENTRYPOINT ["/opt/start_import.sh"]