Skip to content

Commit

Permalink
chore: ship qcow2 image instead of raw
Browse files Browse the repository at this point in the history
  • Loading branch information
darora committed Nov 27, 2024
1 parent 98a87b5 commit 841505a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile-kubevirt
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 841505a

Please sign in to comment.