From 841505a42442b179cb531a66cbae0e7738fb4593 Mon Sep 17 00:00:00 2001 From: Div Arora Date: Tue, 26 Nov 2024 15:22:01 +0800 Subject: [PATCH] chore: ship qcow2 image instead of raw --- Dockerfile-kubevirt | 2 +- Makefile | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile-kubevirt b/Dockerfile-kubevirt index 2591ceb6b..c6b00b667 100644 --- a/Dockerfile-kubevirt +++ b/Dockerfile-kubevirt @@ -1,2 +1,2 @@ FROM scratch -ADD --chown=107:107 focal-raw.img /disk/focal.qcow2 +ADD --chown=107:107 disk/focal.img /disk/focal.qcow2 diff --git a/Makefile b/Makefile index 241271e0e..2f2db8785 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,10 @@ disk/focal-raw.img: output-cloudimg/packer-cloudimg mkdir -p disk sudo qemu-img convert -O raw output-cloudimg/packer-cloudimg disk/focal-raw.img -container-disk-image: disk/focal-raw.img +disk/focal.img: output-cloudimg/packer-cloudimg + sudo qemu-img convert -O qcow2 output-cloudimg/packer-cloudimg disk/focal.img + +container-disk-image: disk/focal.img docker build . -t supabase-postgres-test:$(GIT_SHA) -f ./Dockerfile-kubevirt host-disk: disk/focal-raw.img