From e79f555bbd2e5d1eddc882061c5eda1ed0eb0711 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 13 Mar 2020 13:21:35 +1100 Subject: [PATCH] nodepool-builder: add /opt/dib_cache This was missing but is part of the required runtime directories for the container (for now, until we maybe move all this to volumes). Change-Id: I9e173eb799026520588722caaf60a160abc6b130 --- playbooks/roles/nodepool-builder/tasks/main.yaml | 1 + .../roles/nodepool-builder/templates/docker-compose.yaml.j2 | 2 ++ 2 files changed, 3 insertions(+) diff --git a/playbooks/roles/nodepool-builder/tasks/main.yaml b/playbooks/roles/nodepool-builder/tasks/main.yaml index 185d99f2ba..98c71b0f5d 100644 --- a/playbooks/roles/nodepool-builder/tasks/main.yaml +++ b/playbooks/roles/nodepool-builder/tasks/main.yaml @@ -7,6 +7,7 @@ group: nodepool loop: - '/opt/dib_tmp' + - '/opt/dib_cache' - '/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 ae46229323..4f9cee7636 100644 --- a/playbooks/roles/nodepool-builder/templates/docker-compose.yaml.j2 +++ b/playbooks/roles/nodepool-builder/templates/docker-compose.yaml.j2 @@ -22,6 +22,8 @@ services: - /opt/project-config:/opt/project-config:ro # dib temporary storage; see config in project-config - /opt/dib_tmp:/opt/dib_tmp:rw + # dib cache; see config in project-config + - /opt/dib_cache:/opt/dib_cache:rw # dib image output; see config in project-config - /opt/nodepool_dib:/opt/nodepool_dib:rw # logs (builder + dib build logs under /build)