File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 22
33FIRST_START_DONE=" /etc/docker-openldap-first-start-done"
44
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+
510# fix file permissions
611chown -R openldap:openldap /var/lib/ldap
712chown -R openldap:openldap /etc/ldap
132137# fix file permissions
133138chown openldap:openldap -R /osixia/slapd
134139
135- exit 0
140+ exit 0
Original file line number Diff line number Diff line change 11#! /bin/bash -e
2+
3+ # Reduce maximum number of number of open file descriptors to 1024
4+ # otherwise slapd consumes two orders of magnitude more of RAM
5+ # see https://github.com/docker/docker/issues/8231
6+ ulimit -n 1024
7+
28exec /usr/sbin/slapd -h " ldap:/// ldapi:///" -u openldap -g openldap -d " $LDAP_LOG_LEVEL "
You can’t perform that action at this time.
0 commit comments