From 03eb5cfcccf385d532d19ffdbe15b0169df3d340 Mon Sep 17 00:00:00 2001 From: Div Arora Date: Wed, 27 Nov 2024 09:42:05 +0800 Subject: [PATCH] chore: add rudimentary docs on the QEMU artifact --- Makefile | 3 + ebssurrogate/scripts/qemu-bootstrap-nix.sh | 12 +-- qemu_artifact.md | 95 ++++++++++++++++++++++ 3 files changed, 102 insertions(+), 8 deletions(-) create mode 100644 qemu_artifact.md diff --git a/Makefile b/Makefile index 411e94451..e656f3607 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,9 @@ disk/focal-raw.img: output-cloudimg/packer-cloudimg container-disk-image: output-cloudimg/packer-cloudimg docker build . -t supabase-postgres-test:$(GIT_SHA) -f ./Dockerfile-kubevirt +eks-node-container-disk-image: output-cloudimg/packer-cloudimg + sudo nerdctl build . -t supabase-postgres-test:$(GIT_SHA) --namespace k8s.io -f ./Dockerfile-kubevirt + host-disk: disk/focal-raw.img sudo chown 107 -R disk diff --git a/ebssurrogate/scripts/qemu-bootstrap-nix.sh b/ebssurrogate/scripts/qemu-bootstrap-nix.sh index 0fdc3ae2f..6674552c0 100755 --- a/ebssurrogate/scripts/qemu-bootstrap-nix.sh +++ b/ebssurrogate/scripts/qemu-bootstrap-nix.sh @@ -1,10 +1,4 @@ #!/usr/bin/env bash -# -# This script creates filesystem and setups up chrooted -# enviroment for further processing. It also runs -# ansible playbook and finally does system cleanup. -# -# Adapted from: https://github.com/jen20/packer-ubuntu-zfs set -o errexit set -o pipefail @@ -41,9 +35,8 @@ tee /etc/ansible/ansible.cfg <