diff --git a/entrypoint.sh b/entrypoint.sh index 49eb73a..4353771 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,10 @@ #!/bin/bash set -e +# When not limiting the open file descritors limit, the memory consumption of +# slapd is absurdly high. See https://github.com/docker/docker/issues/8231 +ulimit -n 8192 + chown -R openldap:openldap /var/lib/ldap/ if [[ ! -d /etc/ldap/slapd.d ]]; then