From e8c5af9cde5962ec498a329fafe257ca11769694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Mon, 13 Mar 2023 11:29:51 +0000 Subject: [PATCH] Test build for #283 --- postgres-10-image/Dockerfile | 2 ++ postgres-12-image/Dockerfile | 2 ++ postgres-13-image/Dockerfile | 2 ++ postgres-14-image/Dockerfile | 2 ++ 4 files changed, 8 insertions(+) diff --git a/postgres-10-image/Dockerfile b/postgres-10-image/Dockerfile index b1b239aa2..1867a1cc2 100644 --- a/postgres-10-image/Dockerfile +++ b/postgres-10-image/Dockerfile @@ -40,3 +40,5 @@ RUN set -euo pipefail; chmod +x /usr/local/bin/docker-entrypoint.sh; \ sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql10/postgresql.conf.sample STOPSIGNAL SIGINT +HEALTHCHECK --interval=10s --start-period=10s --timeout=5s \ + CMD pg_isready -U ${POSTGRES_USER:-postgres} -h localhost -p 5432 diff --git a/postgres-12-image/Dockerfile b/postgres-12-image/Dockerfile index b1c4c4606..a4dcb2658 100644 --- a/postgres-12-image/Dockerfile +++ b/postgres-12-image/Dockerfile @@ -40,3 +40,5 @@ RUN set -euo pipefail; chmod +x /usr/local/bin/docker-entrypoint.sh; \ sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql12/postgresql.conf.sample STOPSIGNAL SIGINT +HEALTHCHECK --interval=10s --start-period=10s --timeout=5s \ + CMD pg_isready -U ${POSTGRES_USER:-postgres} -h localhost -p 5432 diff --git a/postgres-13-image/Dockerfile b/postgres-13-image/Dockerfile index 654612ed9..1bc0e20d0 100644 --- a/postgres-13-image/Dockerfile +++ b/postgres-13-image/Dockerfile @@ -40,3 +40,5 @@ RUN set -euo pipefail; chmod +x /usr/local/bin/docker-entrypoint.sh; \ sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql13/postgresql.conf.sample STOPSIGNAL SIGINT +HEALTHCHECK --interval=10s --start-period=10s --timeout=5s \ + CMD pg_isready -U ${POSTGRES_USER:-postgres} -h localhost -p 5432 diff --git a/postgres-14-image/Dockerfile b/postgres-14-image/Dockerfile index 06fcb42de..38e2a86d0 100644 --- a/postgres-14-image/Dockerfile +++ b/postgres-14-image/Dockerfile @@ -41,3 +41,5 @@ RUN set -euo pipefail; chmod +x /usr/local/bin/docker-entrypoint.sh; \ sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql14/postgresql.conf.sample STOPSIGNAL SIGINT +HEALTHCHECK --interval=10s --start-period=10s --timeout=5s \ + CMD pg_isready -U ${POSTGRES_USER:-postgres} -h localhost -p 5432