Skip to content

Commit

Permalink
Fix postgres script permissions
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
hajnalmt committed Nov 22, 2024
1 parent 66c98c8 commit 61b3161
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions make/photon/db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 61b3161

Please sign in to comment.