Commit 1c768d0b authored by Stefan Nica's avatar Stefan Nica
Browse files

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: default avatarStefan Nica <snica@suse.com>
parent 4a7a54ca
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment