openldap/entrypoint.sh
danielguerra69 2e4b41c48e adapted for alpine linux
adapded clone from Christian Luginbühl <dinkel@pimprecords.com>
docker-openldap
2016-03-24 21:33:42 +01:00

18 lines
408 B
Bash
Executable file

#!/bin/sh
# 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
set -e
slapd_configs_in_env=`env | grep 'SLAPD_'`
if [ -n "${slapd_configs_in_env:+x}" ]; then
echo "Info: Container already configured, therefore ignoring SLAPD_xxx environment variables"
fi
exec "$@"