Skip to content

Commit

Permalink
Fix re-applying existing file permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso committed Nov 14, 2024
1 parent 5bfb07f commit 64a177e
Show file tree
Hide file tree
Showing 5 changed files with 728 additions and 701 deletions.
5 changes: 2 additions & 3 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,11 @@ RUN apk update && \
# Pass the PG build target through to the running image
ENV PGTARGET=${PGTARGET}

# Copy across the post-upgrade shell script
COPY pgautoupgrade-postupgrade.sh pgautoupgrade-healthcheck.sh /usr/local/bin/
# Copy across all our shell scripts
COPY pgautoupgrade-postupgrade.sh pgautoupgrade-healthcheck.sh postgres-docker-entrypoint.sh docker-entrypoint.sh /usr/local/bin/

# Set up the script run by the container when it starts
WORKDIR /var/lib/postgresql
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]

HEALTHCHECK CMD /usr/local/bin/pgautoupgrade-healthcheck.sh
Expand Down
5 changes: 2 additions & 3 deletions Dockerfile.bookworm
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,11 @@ RUN apt update && \
# Pass the PG build target through to the running image
ENV PGTARGET=${PGTARGET}

# Copy across the post-upgrade shell script
COPY pgautoupgrade-postupgrade.sh pgautoupgrade-healthcheck.sh /usr/local/bin/
# Copy across all our shell scripts
COPY pgautoupgrade-postupgrade.sh pgautoupgrade-healthcheck.sh postgres-docker-entrypoint.sh docker-entrypoint.sh /usr/local/bin/

# Set up the script run by the container when it starts
WORKDIR /var/lib/postgresql
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]

HEALTHCHECK CMD /usr/local/bin/pgautoupgrade-healthcheck.sh
Expand Down
Loading

0 comments on commit 64a177e

Please sign in to comment.