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 <snica@suse.com>
This commit is contained in:
Stefan Nica 2020-08-25 19:12:48 +02:00
parent 4a7a54cae8
commit 1c768d0bf1
1 changed files with 1 additions and 1 deletions

View File

@ -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