From 89c3acd99792102f00ba25c56b140a19d68cbb36 Mon Sep 17 00:00:00 2001 From: Jon Krehling Date: Wed, 10 Jan 2024 10:53:47 -0500 Subject: [PATCH] [bitnami/postgresql] Created seperate config directory to allow for readonlyrootfilesystem Signed-off-by: Jon Krehling --- bitnami/postgresql/16/debian-11/Dockerfile | 1 + .../rootfs/opt/bitnami/scripts/postgresql/entrypoint.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/bitnami/postgresql/16/debian-11/Dockerfile b/bitnami/postgresql/16/debian-11/Dockerfile index adaf44e811fe3..7841134078918 100644 --- a/bitnami/postgresql/16/debian-11/Dockerfile +++ b/bitnami/postgresql/16/debian-11/Dockerfile @@ -52,6 +52,7 @@ RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen COPY rootfs / RUN /opt/bitnami/scripts/postgresql/postunpack.sh RUN /opt/bitnami/scripts/locales/add-extra-locales.sh +RUN cp -pR /opt/bitnami/postgresql/conf/ /opt/bitnami/postgresql/temp-conf/ ENV APP_VERSION="16.0.0" \ BITNAMI_APP_NAME="postgresql" \ LANG="en_US.UTF-8" \ diff --git a/bitnami/postgresql/16/debian-11/rootfs/opt/bitnami/scripts/postgresql/entrypoint.sh b/bitnami/postgresql/16/debian-11/rootfs/opt/bitnami/scripts/postgresql/entrypoint.sh index 8ea9cb4f10ee5..311701aa2df1a 100755 --- a/bitnami/postgresql/16/debian-11/rootfs/opt/bitnami/scripts/postgresql/entrypoint.sh +++ b/bitnami/postgresql/16/debian-11/rootfs/opt/bitnami/scripts/postgresql/entrypoint.sh @@ -16,6 +16,9 @@ set -o pipefail # Load PostgreSQL environment variables . /opt/bitnami/scripts/postgresql-env.sh +# Move config files from template directory +cp -pR /opt/bitnami/postgresql/temp-conf/* /opt/bitnami/postgresql/conf/ + print_welcome_page # Enable the nss_wrapper settings