Skip to content

Commit

Permalink
resolves docker-library#282: add default healthcheck to dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
zaquestion committed Nov 17, 2019
1 parent 5beb1d4 commit a6b8662
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]
2 changes: 2 additions & 0 deletions 10/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]
2 changes: 2 additions & 0 deletions 11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]
2 changes: 2 additions & 0 deletions 11/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]
2 changes: 2 additions & 0 deletions 12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]
2 changes: 2 additions & 0 deletions 12/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,7 @@ VOLUME /var/lib/postgresql/data
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]
2 changes: 2 additions & 0 deletions 9.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]
2 changes: 2 additions & 0 deletions 9.4/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]
2 changes: 2 additions & 0 deletions 9.5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]
2 changes: 2 additions & 0 deletions 9.5/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]
2 changes: 2 additions & 0 deletions 9.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]
2 changes: 2 additions & 0 deletions 9.6/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]
2 changes: 2 additions & 0 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]
2 changes: 2 additions & 0 deletions Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]

HEALTHCHECK --timeout=5s CMD pg_isready

EXPOSE 5432
CMD ["postgres"]

0 comments on commit a6b8662

Please sign in to comment.