nodepool-builder: add volume for /var/lib/containers

podman, used by the new containerfile element, requires a
non-overlayfs volume at /var/lib/containers to be able to start and
extract the container images for us to build from.  Add a separate
volume for this.

Change-Id: I6629034ad0b300d392d3d989dbbf17a1343c06e1
This commit is contained in:
Ian Wienand 2021-06-10 08:39:28 +10:00
parent 632b2f9df7
commit 4e559edbf5
2 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,7 @@
loop:
- '/opt/dib_tmp'
- '/opt/dib_cache'
- '/opt/dib_containers'
- '/opt/nodepool_dib'
- '/var/log/nodepool/builds'

View File

@ -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