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.
parent
f04323c694
commit
6bb91300fe
|
@ -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()
|
|
||||||
|
|
Loading…
Reference in New Issue