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 c4b2989 commit fb21ae5
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 @@ -31,7 +31,7 @@ build_task_template: &BUILD_TASK_TEMPLATE
apt-get update
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 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 @@ -54,6 +54,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' \;
ls -lah
popd
push_script: |
if [[ "$CIRRUS_BRANCH" == "main" ]]; then
wget https://dl.min.io/client/mc/release/linux-amd64/mc
Expand Down

0 comments on commit fb21ae5

Please sign in to comment.