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.
This commit is contained in:
Dusty Mabe 2025-05-06 16:37:47 -04:00
parent a1ce9c6305
commit 31306a297b
No known key found for this signature in database
GPG key ID: 3302DBD73952E671

View file

@ -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 /