georchestra / docker

Quick start geOrchestra with docker
17 stars 22 forks source link

with docker v.24 ldap needs a limit on nofiles #238

Closed danduk82 closed 1 year ago

danduk82 commented 1 year ago

To run ldap on docker v.24 one might need to add the following to the docker-compose section for ldap

services:
  ldap:
   ulimits:
    nofile:
      soft: 1024
      hard: 1024

otherwise the following (might) arise:

docker-ldap-1  | run-parts: executing /docker-entrypoint.d/00-init
docker-ldap-1  | run-parts: executing /docker-entrypoint.d/01-populate
docker-ldap-1  | slapd: ../../../../servers/slapd/ch_malloc.c:107: ch_calloc: Assertion `0' failed.
docker-ldap-1  | /docker-entrypoint.d/01-populate: line 77:    92 Aborted                 (core dumped) slapd -u ${RUN_AS_UID} -g ${RUN_AS_GID} -h "ldapi:/// ldap://127.0.0.1/"
docker-ldap-1  | Starting slapd daemon in background...Started: OK

see also https://stackoverflow.com/questions/76332218/openldap-ch-calloc-core-dump-in-docker-containers

edevosc2c commented 1 year ago

closing in favor of https://github.com/georchestra/docker/issues/239