mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-02 22:18:29 +01:00
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:
parent
4a7a54cae8
commit
1c768d0bf1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user