Skip to content

Commit

Permalink
Rename the healthcheck script for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
justinclift committed Oct 24, 2024
1 parent edf838f commit 024860d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ RUN apk update && \
ENV PGTARGET=${PGTARGET}

# Copy across the post-upgrade shell script
COPY pgautoupgrade-postupgrade.sh healthcheck.sh /usr/local/bin/
COPY pgautoupgrade-postupgrade.sh pgautoupgrade-healthcheck.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/healthcheck.sh
HEALTHCHECK CMD /usr/local/bin/pgautoupgrade-healthcheck.sh

CMD ["postgres"]
4 changes: 2 additions & 2 deletions Dockerfile.bookworm
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ RUN apt update && \
ENV PGTARGET=${PGTARGET}

# Copy across the post-upgrade shell script
COPY pgautoupgrade-postupgrade.sh healthcheck.sh /usr/local/bin/
COPY pgautoupgrade-postupgrade.sh pgautoupgrade-healthcheck.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/healthcheck.sh
HEALTHCHECK CMD /usr/local/bin/pgautoupgrade-healthcheck.sh

CMD ["postgres"]
File renamed without changes.

0 comments on commit 024860d

Please sign in to comment.