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.
Dustin 2025-08-25 23:12:28 -05:00
parent f04323c694
commit 6bb91300fe
1 changed files with 6 additions and 6 deletions

View File

@ -4,17 +4,17 @@ spec:
containers: containers:
- name: zola - name: zola
image: git.pyrocufflink.net/containerimages/zola image: git.pyrocufflink.net/containerimages/zola
command:
- pause
- name: python - name: python
image: docker.io/python:3.10 image: docker.io/python:3.10
command: command:
- python - python
args: args:
- -c - -c
- import signal; signal.pause() - |-
import signal
signal.signal(signal.SIGTERM, lambda x, y: None)
signal.pause()
- name: rsync - name: rsync
image: git.pyrocufflink.net/containerimages/rsync image: git.pyrocufflink.net/containerimages/rsync
command:
- python3
args:
- -c
- import signal; signal.pause()