From aa019dea010995b5786f1754575f4180ef54dc89 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 17 Nov 2023 10:18:15 -0500 Subject: [PATCH] ci: Add debugging for container --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c4d949f1..29af5237e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,7 +107,7 @@ jobs: with: name: bootc.tar.zst - name: Install - run: tar -xvf bootc.tar.zst + run: tar -xvf bootc.tar.zst && sha256sum usr/bin/bootc > bootc.sha256sum - name: Update host skopeo run: | echo 'deb http://cz.archive.ubuntu.com/ubuntu lunar main universe' | sudo tee -a /etc/apt/sources.list @@ -122,15 +122,17 @@ jobs: EOF cat >Containerfile << 'EOF' FROM quay.io/centos-boot/fedora-tier-1:eln - COPY usr usr/ + COPY usr usr EOF sudo podman build -t localhost/testimage . - sudo podman run --rm -ti localhost/testimage ls -al /usr/lib/bootc/install + sudo podman run --rm -ti localhost/testimage sha256sum /usr/bin/bootc > bootc-container.sha256sum + diff -u bootc{,-container}.sha256sum + sudo podman run --rm -ti localhost/testimage - name: Integration tests run: | set -xeuo pipefail - sudo podman run --rm -ti --privileged -v /:/target -v ./usr/bin/bootc:/usr/bin/bootc --pid=host --security-opt label=disable \ - localhost/testimage env RUST_LOG=error,bootc_lib::install=debug bootc install-to-filesystem --skip-fetch-check --target-no-signature-verification \ + sudo podman run --rm -ti --privileged -v /:/target --pid=host --security-opt label=disable \ + localhost/testimage env RUST_LOG=error,bootc_lib::install=debug bootc install-to-filesystem --skip-fetch-check --target-no-signature-verification \ --karg=foo=bar --disable-selinux --replace=alongside /target sudo grep foo=bar /boot/loader/entries/*.conf sudo grep localtestkarg=somevalue /boot/loader/entries/*.conf