From 923c1d8460feb231adc2946c76b8c438af89753b3f95638e167965bcb7cfe807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Mon, 13 Mar 2023 12:54:51 +0000 Subject: [PATCH] [info=dd1f7a0c04ee122a5750cc9b504a9679] OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/postgres-12-image?expand=0&rev=16 --- Dockerfile | 2 ++ postgres-12-image.changes | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 5715bb6..e2b4d55 100644 --- a/Dockerfile +++ b/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-12-image.changes b/postgres-12-image.changes index e816b81..0e73a9f 100644 --- a/postgres-12-image.changes +++ b/postgres-12-image.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 13 11:26:06 UTC 2023 - Dan Čermák + +- Add Healthcheck + ------------------------------------------------------------------- Thu Mar 9 16:27:16 UTC 2023 - Dan Čermák