mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 18:34:09 +00:00
fix(docker): let dumb-init forward the stop signal in the shipped compose file
The compose file drops every capability and adds back CHOWN, SETUID and SETGID. dumb-init runs as root and node as the node user, and signalling a process of another user needs KILL, so docker stop never reached node and always ended in SIGKILL (exit 137). KILL only reaches processes inside the container's own PID namespace. CI starts the image with the same set and now checks that docker stop exits 0 after a logged SIGTERM. Closes #2790
This commit is contained in:
@@ -11,6 +11,10 @@ services:
|
||||
- CHOWN
|
||||
- SETUID
|
||||
- SETGID
|
||||
# dumb-init runs as root and forwards SIGTERM to node, which runs as the
|
||||
# node user; signalling another user's process needs KILL. Without it
|
||||
# docker stop ends in SIGKILL and the graceful shutdown never runs.
|
||||
- KILL
|
||||
tmpfs:
|
||||
- /tmp:noexec,nosuid,size=128m
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user