Skip to content

Commit

Permalink
Use virt-sparsify again to reduce image size
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt committed Sep 17, 2024
1 parent 8858c3a commit 37e67b2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ build_task_template: &BUILD_TASK_TEMPLATE
while fuser /var/lib/dpkg/lock >/dev/null 2>&1; do sleep 5; done;
while fuser /var/lib/dpkg/lock-frontend >/dev/null 2>&1; do sleep 5; done;
apt-get update
apt-get install -y git make python3-pip curl jq unzip
apt-get install -y git make python3-pip curl jq unzip libguestfs-tools
prepare_script: |
git clone https://github.com/kubernetes-sigs/image-builder
Expand All @@ -52,6 +52,12 @@ build_task_template: &BUILD_TASK_TEMPLATE
mv image-builder/images/capi/output/ubuntu-2204-kube-v$IMAGE_IDENTIFIER/last-$IMAGE_IDENTIFIER .
cat last-$IMAGE_IDENTIFIER
sparsify_script: |
pushd image-builder/images/capi/output/ubuntu-2204-kube-v$IMAGE_IDENTIFIER
find . -name '*.qcow2' -execdir bash -c 'x={}; virt-sparsify --in-place $x' \;
popd
ls -lah
push_script: |
if [[ "$CIRRUS_BRANCH" == "main" ]]; then
wget https://dl.min.io/client/mc/release/linux-amd64/mc
Expand Down

0 comments on commit 37e67b2

Please sign in to comment.