From 459d13174a8b7f7ac8878680d70d6d3bc06a5d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Tue, 24 Oct 2023 18:03:06 +0200 Subject: [PATCH] Create rundir for the tw containers PostgreSQL moved from /var/run to /run which is usually on tmpfs except inside containers. Outside containers this directory would be created by systemd-tmpfiles generator. Here we need to create it ourselves. --- src/bci_build/package/appcontainers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bci_build/package/appcontainers.py b/src/bci_build/package/appcontainers.py index e81846c97..195bea325 100644 --- a/src/bci_build/package/appcontainers.py +++ b/src/bci_build/package/appcontainers.py @@ -303,6 +303,7 @@ {DOCKERFILE_RUN} chmod +x /usr/local/bin/docker-entrypoint.sh; \ sed -i -e 's/exec gosu postgres "/exec setpriv --reuid=postgres --regid=postgres --clear-groups -- "/g' /usr/local/bin/docker-entrypoint.sh; \ mkdir /docker-entrypoint-initdb.d; \ + install -m 1775 -o postgres -g postgres -d /run/postgresql; \ install -d -m 0700 -o postgres -g postgres $PGDATA; \ sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql{ver}/postgresql.conf.sample