From 6bb91300fe221b095b2ccb250f4c72555970748c Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 25 Aug 2025 23:12:28 -0500 Subject: [PATCH] ci: Fix container entry points * The _zola_ container image no longer contains Python, but it does contain `pause`. * When using `python` as the entry point, we need to explicitly register a signal handler for SIGTERM, otherwise `signal.pause()` will never return. * The _rsync_ container image now has a default pause entry point. --- ci/podTemplate.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ci/podTemplate.yaml b/ci/podTemplate.yaml index 25b3fec..5a97ff9 100644 --- a/ci/podTemplate.yaml +++ b/ci/podTemplate.yaml @@ -4,17 +4,17 @@ spec: containers: - name: zola image: git.pyrocufflink.net/containerimages/zola + command: + - pause - name: python image: docker.io/python:3.10 command: - python args: - -c - - import signal; signal.pause() + - |- + import signal + signal.signal(signal.SIGTERM, lambda x, y: None) + signal.pause() - name: rsync image: git.pyrocufflink.net/containerimages/rsync - command: - - python3 - args: - - -c - - import signal; signal.pause()