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:
parent
a1ce9c6305
commit
31306a297b
1 changed files with 2 additions and 4 deletions
|
|
@ -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 /
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue