system-config/playbooks/roles/zuul-executor/files/docker-compose.yaml
Clark Boylan 85d923b74e Update zuul-executor shutdown handling
We update the docker-compose config for zuul-executor to better handle
its shutdown handling. In particular we want to support zuul-executor
graceful which will pause the server then exit with rc 0 when all builds
complete. To do this we switch restart: always to restart: on-failure.
With the always setting docker simply restarts zuul-executor after a
graceful stop.

We also remove the stop signal of SIGHUP with its long timeout. Zuul
executor does not seem to catch SIGHUP for anything anymore so this is
there for old behavior and can be cleaned up.

Change-Id: I5211b91025ce5a13648f3648db3b42d357ecd590
2021-02-26 08:12:30 -08:00

21 lines
533 B
YAML

# Version 2 is the latest that is supported by docker-compose in
# Ubuntu Xenial.
version: '2'
services:
executor:
restart: on-failure
image: docker.io/zuul/zuul-executor:latest
network_mode: host
user: zuul
privileged: true
volumes:
- /etc/zuul:/etc/zuul
- /opt/project-config:/opt/project-config
- /afs:/afs
- /home/zuuld:/home/zuul
- /var/lib/zuul:/var/lib/zuul
- /var/log/zuul:/var/log/zuul
- /etc/openafs:/etc/openafs:ro
- /etc/ssl/certs:/etc/ssl/certs