Skip to content

Commit

Permalink
ci: Add debugging for container
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Nov 17, 2023
1 parent be758fd commit aa019de
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit aa019de

Please sign in to comment.