keep entrypoint from eumau/debian, run setup as a start.d script instead
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
471fcb3d9d
commit
5f0f8223f7
@ -28,13 +28,11 @@ RUN apt-get update \
|
|||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
ADD entrypoint.sh /
|
ADD setup.sh /start.d
|
||||||
|
|
||||||
EXPOSE 389
|
EXPOSE 389
|
||||||
|
|
||||||
VOLUME ["/etc/ldap/schema", "/etc/ldap/slapd.d", "/var/lib/ldap", "/var/backups/ldap"]
|
VOLUME ["/etc/ldap/schema", "/etc/ldap/slapd.d", "/var/lib/ldap", "/var/backups/ldap"]
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
|
||||||
|
|
||||||
# log level info:
|
# log level info:
|
||||||
CMD ["slapd", "-d", "32768", "-u", "openldap", "-g", "openldap"]
|
CMD ["slapd", "-d", "32768", "-u", "openldap", "-g", "openldap"]
|
||||||
|
@ -248,8 +248,3 @@ kill -INT $(cat ${PIDFILE})
|
|||||||
# unset sensitive variables
|
# unset sensitive variables
|
||||||
unset LDAP_ADMIN_PASSWORD LDAP_CONFIG_PASSWORD LDAP_ADMIN_PWHASH \
|
unset LDAP_ADMIN_PASSWORD LDAP_CONFIG_PASSWORD LDAP_ADMIN_PWHASH \
|
||||||
LDAP_CONFIG_PWHASH LOADED_SCHEMAS PIDFILE
|
LDAP_CONFIG_PWHASH LOADED_SCHEMAS PIDFILE
|
||||||
|
|
||||||
# run Dockerfile CMD
|
|
||||||
echo "Running CMD $@"
|
|
||||||
set -e
|
|
||||||
exec "$@"
|
|
Loading…
x
Reference in New Issue
Block a user