Skip to content

Commit 95c5bb7

Browse files
Ensure signals are propagated to all nodejs processes
Pass the `-g` flag to tini, so that when a signal is received (typically from k8s' pod lifecycle management) it gets propagated to all node.js processes that were spawned. This behavior is similar to Ctrl+C in a terminal: > In macOS, as in other Unix-like operating systems (like Linux and BSD), > when you press Ctrl+C in your terminal, the terminal driver sends the > SIGINT (Signal Interrupt) signal to the entire foreground process group, > not just the single process you might see running. Issue: CLDSRV-727
1 parent fd8e83f commit 95c5bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ COPY --from=builder /usr/src/app/node_modules ./node_modules/
5555

5656
VOLUME ["/usr/src/app/localData","/usr/src/app/localMetadata"]
5757

58-
ENTRYPOINT ["tini", "--", "/usr/src/app/docker-entrypoint.sh"]
58+
ENTRYPOINT ["tini", "-g", "--", "/usr/src/app/docker-entrypoint.sh"]
5959

6060
CMD [ "yarn", "start" ]

0 commit comments

Comments
 (0)