Commit Graph

2 Commits

Author SHA1 Message Date
Pavle Portic b9793a267b Add exec to run script to run app as PID 1 (#1200)
continuous-integration/drone/push Build is failing Details
When running the docker container, the sh script will run as PID 1 and intercept any external signals (like docker stop) and won't pass it on to the app. Docker will wait for 10 seconds before proceeding to force kill the app, leading to both an unclean shutdown and an unnecessary wait of 10 seconds.

The exec in the script replaces the shell process with the `su` process, which correctly passes on signals to the app process and triggers a regular shutdown when doing a docker stop.

Co-authored-by: Pavle Portic <git@theedgeofrage.com>
Reviewed-on: vikunja/api#1200
Reviewed-by: konrad <k@knt.li>
Co-authored-by: TheEdgeOfRage <git@theedgeofrage.com>
Co-committed-by: TheEdgeOfRage <git@theedgeofrage.com>
2022-07-12 14:02:31 +00:00
kolaente 4204af255c
Add ability to run the docker container with configurable user and group ids
continuous-integration/drone/push Build is passing Details
2020-05-22 21:18:11 +02:00