Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use virt-sparsify again to reduce image size #257

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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