Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile: ensure json-server terminates on SIGTERM
Ensure that the json-server process terminates upon reception of the SIGTERM signal, so that the pod doesn't remain in terminating status for 30 seconds (the default grace period) when deleted. This fix involves two changes: * Run exec at the end of the run.sh script, instead of shelling out, so that the callee gets PID 1; * Wrap the json-server executable with the "tini" lightweight init system, as apparently node doesn't terminate upon SIGTERM when running as PID 1. Signed-off-by: Marco Iorio <[email protected]>
- Loading branch information