From 31306a297b6eafa53ca3d0022d4b4a4b4e47b3b4 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Tue, 6 May 2025 16:37:47 -0400 Subject: [PATCH] tests: simplify to use just the built bootc image I'm sure there is a reason for why it is the way it is, which I will learn about, but the way it is currently set up makes it hard to run commands in the target system (like `rpm -q`) without doing a chroot and doing a chroot requires some setup to happen. I guess the nice thing about the way it is prior is we get to the look at the filesystem untouched by the container runtime; which can definitely be useful for tests. --- tests/rootfs/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/rootfs/Dockerfile b/tests/rootfs/Dockerfile index 10e6e0c..0e407e2 100644 --- a/tests/rootfs/Dockerfile +++ b/tests/rootfs/Dockerfile @@ -1,6 +1,4 @@ # This should always be replaced with podman build --from. -FROM localhost/image-to-test as rootfs - -FROM quay.io/centos/centos:stream10 +FROM localhost/image-to-test COPY . /src -RUN --mount=type=bind,from=rootfs,target=/target-rootfs /src/run /target-rootfs +RUN /src/run /