process.sh 493 B

123456789101112
  1. #!/bin/bash -e
  2. # set -x (bash debug) if log level is trace
  3. # https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/log-helper
  4. log-helper level eq trace && set -x
  5. # Reduce maximum number of number of open file descriptors to 1024
  6. # otherwise slapd consumes two orders of magnitude more of RAM
  7. # see https://github.com/docker/docker/issues/8231
  8. ulimit -n 1024
  9. exec /usr/sbin/slapd -h "ldap://$HOSTNAME ldaps://$HOSTNAME ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL