From b1a3cb2b2c6dd0b6905e5138435a1b6b141210ea Mon Sep 17 00:00:00 2001 From: Mate Hajnal Date: Mon, 7 Oct 2024 09:46:50 +0200 Subject: [PATCH] Fix postgres script permissions 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"]