Skip to content
Snippets Groups Projects
Commit 9995c0b9 authored by nimrod's avatar nimrod
Browse files

A little touchup.

parent 5d18c561
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ RUN echo 'deb http://deb.debian.org/debian stretch-backports main' > /etc/apt/so ...@@ -8,7 +8,7 @@ RUN echo 'deb http://deb.debian.org/debian stretch-backports main' > /etc/apt/so
&& \ && \
mkdir -p /run/slapd && \ mkdir -p /run/slapd && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*
COPY entrypoint / COPY --chown=root:root entrypoint /
EXPOSE 389 636 EXPOSE 389 636
VOLUME [ "/var/lib/ldap" ] VOLUME [ "/var/lib/ldap" ]
ENV LDAP_URLS="ldap:/// ldapi:/// ldaps:///" \ ENV LDAP_URLS="ldap:/// ldapi:/// ldaps:///" \
......
#!/bin/sh #!/bin/sh
set -eux set -eux
chown -R openldap:openldap /run/slapd install -d -o openldap -g openldap /run/slapd
chown -R openldap:openldap /var/lib/ldap install -d -o openldap -g openldap /var/lib/ldap
cat << EOF | debconf-set-selections -v cat << EOF | debconf-set-selections -v
slapd slapd/internal/generated_adminpw password ${LDAP_ROOTPASS:-} slapd slapd/internal/generated_adminpw password ${LDAP_ROOTPASS:-}
...@@ -13,6 +13,6 @@ slapd slapd/domain string ${LDAP_DOMAIN:-} ...@@ -13,6 +13,6 @@ slapd slapd/domain string ${LDAP_DOMAIN:-}
slapd shared/organization string ${LDAP_ORGANIZATION:-} slapd shared/organization string ${LDAP_ORGANIZATION:-}
EOF EOF
dpkg-reconfigure -f noninteractive slapd DEBIAN_FRONTEND=noninteractive dpkg-reconfigure -f noninteractive slapd
eval exec "$@" eval exec "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment