nodepool/playbooks/nodepool-functional-container-openstack/templates/docker-compose.yaml.j2
Clark Boylan 5702331087 Move nodepool functests to podman
Now that nodepool images are on quay.io we don't get speculative
container image testing with docker. The reason for this is docker only
knows how to lookup images hosted by docker.io in mirrors which
specualtive container image testing relies on. Since the images are
hosted on quay.io instead of docker.io we lose this functionality.

Address this by switching to podman and podman-compose which does
understand how to fetch images with mirrors from any location.

Depends-On: https://review.opendev.org/c/zuul/zuul/+/687135
Change-Id: I1a510a9b68a2f01098f3c099a129d6d268b422d9
2023-05-30 15:35:47 -07:00

54 lines
1.5 KiB
Django/Jinja

version: '3.0'
volumes:
nested_var_lib_containers:
services:
nodepool-builder:
image: quay.io/zuul-ci/nodepool-builder{{ nodepool_container_tag|default('') }}
network_mode: host
restart: always
privileged: true
environment:
- DEBUG=1
volumes:
# cloud config
- /etc/openstack:/etc/openstack:ro
# nodepool config
- /etc/nodepool:/etc/nodepool:ro
# large dib storage area
- /opt/dib:/opt/dib
# for dib to get source for glean installs, etc.
- /home/zuul:/home/zuul
# logs (builder + dib build logs under /build)
- /var/log/nodepool:/var/log/nodepool
# devstack tls-proxy puts CA here that is referenced by cloud config
- /opt/stack/data:/opt/stack/data:ro
# for nested podman/docker runs (container elements)
- nested_var_lib_containers:/var/lib/containers
# zookeeper certs
- /opt/zookeeper/ca:/opt/zookeeper/ca:ro
nodepool-launcher:
image: quay.io/zuul-ci/nodepool-launcher{{ nodepool_container_tag|default('') }}
network_mode: host
restart: always
environment:
- DEBUG=1
volumes:
# cloud config
- /etc/openstack:/etc/openstack:ro
# nodepool config
- /etc/nodepool:/etc/nodepool:ro
# logs (builder + dib build logs under /build)
- /var/log/nodepool:/var/log/nodepool
# devstack tls-proxy puts CA here that is referenced by cloud config
- /opt/stack/data:/opt/stack/data:ro
# zookeeper certs
- /opt/zookeeper/ca:/opt/zookeeper/ca:ro