Skip to content

Commit c32c168

Browse files
committed
reorganisation code
1 parent 5606ef1 commit c32c168

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ ENV LDAP_ADMIN_PWD toor
99
ENV LDAP_ORGANISATION Example Inc.
1010
ENV 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
1921
RUN /etc/enable-service dnsmasq
@@ -35,11 +37,11 @@ RUN mkdir /etc/ldap/ssl
3537

3638
# Add config directory
3739
RUN mkdir /etc/ldap/config
38-
ADD config /etc/ldap/config
40+
ADD service/slapd/config /etc/ldap/config
3941

4042
# Add slapd deamon
4143
RUN 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
4547
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
File renamed without changes.

0 commit comments

Comments
 (0)