From 1c768d0bf1b25fbd7d37d3da393166b2fb67ed0a Mon Sep 17 00:00:00 2001 From: Stefan Nica Date: Tue, 25 Aug 2020 19:12:48 +0200 Subject: [PATCH] Use exec in harbor database entrypoint The harbor-db pod takes a long time to terminate. Using an `exec` command in the entrypoint ensures that Unix signals reach the postgres process [1]. [1] https://docs.docker.com/engine/reference/builder/#exec-form-entrypoint-example Signed-off-by: Stefan Nica --- make/photon/db/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/photon/db/docker-entrypoint.sh b/make/photon/db/docker-entrypoint.sh index 732f244f0..ce95a6a3f 100644 --- a/make/photon/db/docker-entrypoint.sh +++ b/make/photon/db/docker-entrypoint.sh @@ -117,4 +117,4 @@ fi POSTGRES_PARAMETER="${POSTGRES_PARAMETER} -c max_connections=${POSTGRES_MAX_CONNECTIONS}" -postgres -D $PGDATA $POSTGRES_PARAMETER +exec postgres -D $PGDATA $POSTGRES_PARAMETER