keep entrypoint from eumau/debian, run setup as a start.d script instead
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mauro Torrez 2019-09-30 18:09:39 -03:00
parent 471fcb3d9d
commit 5f0f8223f7
2 changed files with 1 additions and 8 deletions

View File

@ -28,13 +28,11 @@ RUN apt-get update \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD entrypoint.sh /
ADD setup.sh /start.d
EXPOSE 389
VOLUME ["/etc/ldap/schema", "/etc/ldap/slapd.d", "/var/lib/ldap", "/var/backups/ldap"]
ENTRYPOINT ["/entrypoint.sh"]
# log level info:
CMD ["slapd", "-d", "32768", "-u", "openldap", "-g", "openldap"]

View File

@ -248,8 +248,3 @@ kill -INT $(cat ${PIDFILE})
# unset sensitive variables
unset LDAP_ADMIN_PASSWORD LDAP_CONFIG_PASSWORD LDAP_ADMIN_PWHASH \
LDAP_CONFIG_PWHASH LOADED_SCHEMAS PIDFILE
# run Dockerfile CMD
echo "Running CMD $@"
set -e
exec "$@"