From 05e25ed0e5c98148341f78093e194fa53435db12 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Fri, 10 Jan 2025 10:22:12 -0800 Subject: [PATCH] Add vagrant boxes cache in runner image --- resources/ubuntu-runner-pipeline.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/ubuntu-runner-pipeline.yml b/resources/ubuntu-runner-pipeline.yml index 88502500..1d6b2485 100644 --- a/resources/ubuntu-runner-pipeline.yml +++ b/resources/ubuntu-runner-pipeline.yml @@ -40,7 +40,7 @@ spec: - ReadWriteOnce resources: requests: - storage: 25G + storage: 35G volumeMode: Filesystem source: http: @@ -113,6 +113,7 @@ spec: - "sudo ln -s /usr/bin/python3 /usr/bin/python" - "sudo /opt/runner/bin/installdependencies.sh" - "sudo chown -R runner: /opt/runner" + - "sudo runuser -l runner -c 'for box in community/rockylinux-9 generic/ubuntu2004 generic/ubuntu2204 debian/bullseye64 opensuse/Leap-15.6.x86_64 fedora/40-cloud-base; do vagrant box add --provider virtualbox $box; done'" write_files: - path: /etc/profile.d/vagrant.sh content: |