File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,13 @@ ENV LDAP_ADMIN_PWD toor
99ENV LDAP_ORGANISATION Example Inc.
1010ENV LDAP_DOMAIN example.com
1111
12- # /!\ To store the data outside the container, mount /var/lib/ldap as a data volume
13- # add -v /some/host/directory:/var/lib/ldap to the run command
12+ # /!\ To store the data outside the container,
13+ # mount /var/lib/ldap and /etc/ldap/slapd.d as a data volume add
14+ # -v /some/host/directory:/var/lib/ldap and -v /some/other/host/directory:/etc/ldap/slapd.d
15+ # to the run command
1416
1517# Disable SSH
16- RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
18+ # RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
1719
1820# Enable dnsmasq
1921RUN /etc/enable-service dnsmasq
@@ -35,11 +37,11 @@ RUN mkdir /etc/ldap/ssl
3537
3638# Add config directory
3739RUN mkdir /etc/ldap/config
38- ADD config /etc/ldap/config
40+ ADD service/slapd/ config /etc/ldap/config
3941
4042# Add slapd deamon
4143RUN mkdir /etc/service/slapd
42- ADD slapd.sh /etc/service/slapd/run
44+ ADD service/slapd/ slapd.sh /etc/service/slapd/run
4345
4446# Clear out the local repository of retrieved package files
4547RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments