diff --git a/playbooks/roles/nodepool-builder/tasks/main.yaml b/playbooks/roles/nodepool-builder/tasks/main.yaml index 9be56b323d..9bbfa4bacd 100644 --- a/playbooks/roles/nodepool-builder/tasks/main.yaml +++ b/playbooks/roles/nodepool-builder/tasks/main.yaml @@ -13,6 +13,7 @@ loop: - '/opt/dib_tmp' - '/opt/dib_cache' + - '/opt/dib_containers' - '/opt/nodepool_dib' - '/var/log/nodepool/builds' diff --git a/playbooks/roles/nodepool-builder/templates/docker-compose.yaml.j2 b/playbooks/roles/nodepool-builder/templates/docker-compose.yaml.j2 index 0fa7f3c24e..5ac6ca8a40 100644 --- a/playbooks/roles/nodepool-builder/templates/docker-compose.yaml.j2 +++ b/playbooks/roles/nodepool-builder/templates/docker-compose.yaml.j2 @@ -1,4 +1,5 @@ version: '2' + services: nodepool-builder: image: docker.io/zuul/nodepool-builder:{{ nodepool_builder_container_tag|default('latest') }} @@ -30,3 +31,6 @@ services: - /opt/nodepool_dib:/opt/nodepool_dib:rw # logs (builder + dib build logs under /build) - /var/log/nodepool:/var/log/nodepool:rw + # for the containerfile element/podman; it needs a non-overlayfs + # mounted here. + - /opt/dib_containers:/var/lib/containers