diff --git a/.github/workflows/qemu-image-build.yml b/.github/workflows/qemu-image-build.yml index 97bc92a1c..ffd12683c 100644 --- a/.github/workflows/qemu-image-build.yml +++ b/.github/workflows/qemu-image-build.yml @@ -10,6 +10,7 @@ on: - 'qemu-arm64-nix.pkr.hcl' - 'common-nix.vars.pkr.hcl' - 'ansible/vars.yml' + - 'scripts/*' workflow_dispatch: permissions: diff --git a/Dockerfile-kubernetes b/Dockerfile-kubernetes index a1a39e498..2a5e1ca1e 100644 --- a/Dockerfile-kubernetes +++ b/Dockerfile-kubernetes @@ -1,9 +1,12 @@ -FROM alpine:3.21 +FROM alpine:3.22 ADD ./output-cloudimg/packer-cloudimg /disk/focal.qcow2 -RUN apk add --no-cache qemu-system-aarch64 qemu-img openssh-client nftables cloud-utils-localds aavmf virtiofsd -# dev stuff -# RUN apk add --no-cache iproute2 +RUN apk add --no-cache qemu-system-aarch64 qemu-img openssh-client aavmf virtiofsd \ + && truncate -s 64M /root/varstore.img \ + && truncate -s 64M /root/efi.img \ + && dd if=/usr/share/AAVMF/QEMU_EFI.fd of=/root/efi.img conv=notrunc \ + && qemu-img create -f qcow2 /tmp/disk.qcow2 -b /disk/focal.qcow2 -F qcow2 \ + && apk del --no-cache aavmf qemu-img CMD exec /bin/sh -c "trap : TERM INT; sleep 9999999999d & wait" diff --git a/ansible/vars.yml b/ansible/vars.yml index f23aaf2ab..2d6465832 100644 --- a/ansible/vars.yml +++ b/ansible/vars.yml @@ -9,9 +9,9 @@ postgres_major: # Full version strings for each major version postgres_release: - postgresorioledb-17: "17.0.1.094-orioledb" - postgres17: "17.4.1.044" - postgres15: "15.8.1.101" + postgresorioledb-17: "17.0.1.095-orioledb" + postgres17: "17.4.1.45" + postgres15: "15.8.1.102" # Non Postgres Extensions pgbouncer_release: "1.19.0" diff --git a/ebssurrogate/scripts/qemu-bootstrap-nix.sh b/ebssurrogate/scripts/qemu-bootstrap-nix.sh index ad5c2744c..b52b85789 100755 --- a/ebssurrogate/scripts/qemu-bootstrap-nix.sh +++ b/ebssurrogate/scripts/qemu-bootstrap-nix.sh @@ -155,6 +155,6 @@ execute_stage2_playbook # we do not want to ship an initialized DB as this is performed as needed mkdir -p /db/template mv /data/pgdata /db/template +cloud-init clean --logs clean_legacy_things clean_system -cloud-init clean --logs diff --git a/scripts/90-cleanup-qemu.sh b/scripts/90-cleanup-qemu.sh index d6c6ade05..50d8d956f 100644 --- a/scripts/90-cleanup-qemu.sh +++ b/scripts/90-cleanup-qemu.sh @@ -43,7 +43,10 @@ elif [ -n "$(command -v apt-get)" ]; then add-apt-repository --yes --remove ppa:ansible/ansible source /etc/os-release - apt-get -y remove --purge linux-headers-5.11.0-1021-aws + + apt-mark manual libevent-2.1-7 # required for pgbouncer + apt-get -y remove --purge ansible-core apport appstream bash-completion bcache-tools bind9-dnsutils bind9-host bind9-libs bolt btrfs-progs byobu command-not-found console-setup distro-info eject fonts-ubuntu-console friendly-recovery ftp fwupd gawk gdisk keyboard-configuration libvolume-key1 libicu66 libssl-dev lvm2 lxd-agent-loader man-db mdadm modemmanager mtd-utils nano netcat-openbsd nfs-common ntfs-3g parted pastebinit screen strace thin-provisioning-tools tmux usb-modeswitch vim vim-runtime wget whiptail xfsprogs + apt remove -y --purge libc6-dev linux-libc-dev libevent-dev libpcre3-dev libsystemd-dev apt-get -y update apt-get -y upgrade