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

A little touchup.

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