From 4a12623459a754ff4d07fbd1cddb4df436e8524c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hajnal=20M=C3=A1t=C3=A9?= Date: Mon, 25 Nov 2024 13:53:19 +0100 Subject: [PATCH] Fix postgres script permissions (#21007) The initdb.sh and the upgrade.sh scripts in the postgres image were not owned by the postgres user, which made them failing with permission denied errors. Signed-off-by: Mate Hajnal --- make/photon/db/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/make/photon/db/Dockerfile b/make/photon/db/Dockerfile index c9e3313c4a2..011bc1d7d41 100644 --- a/make/photon/db/Dockerfile +++ b/make/photon/db/Dockerfile @@ -9,8 +9,9 @@ COPY ./make/photon/db/initdb.sh /initdb.sh COPY ./make/photon/db/upgrade.sh /upgrade.sh COPY ./make/photon/db/docker-healthcheck.sh /docker-healthcheck.sh COPY ./make/photon/db/initial-registry.sql /docker-entrypoint-initdb.d/ -RUN chown -R postgres:postgres /docker-entrypoint.sh /docker-healthcheck.sh /docker-entrypoint-initdb.d \ - && chmod u+x /docker-entrypoint.sh /docker-healthcheck.sh +RUN chown -R postgres:postgres /docker-entrypoint.sh /initdb.sh /upgrade.sh \ + /docker-healthcheck.sh /docker-entrypoint-initdb.d \ + && chmod u+x /initdb.sh /upgrade.sh /docker-entrypoint.sh /docker-healthcheck.sh ENTRYPOINT ["/docker-entrypoint.sh", "14", "15"] HEALTHCHECK CMD ["/docker-healthcheck.sh"]