bootc-image-builder
bootc-image-builder copied to clipboard
bib: run "dnf" inside the container again
In 17d3b56 osbuild-dnf-json was changed to run outside the container. This lead to a regression in accessing subscribed content. This commit partially reverts this commit to run dnf again inside the container so that we have access to the /run/secrets and RHEL repos.
This also adds a bunch of extra tests that needs to run on a fedora/rhel/centos machine to test dnfjson and subscriptions inside the container environment. Those will only run in testingfarm (or locally) not in GH actions.
Closes: https://issues.redhat.com/browse/BIFROST-429
P.S. We should probably also look into how to inject osbuild-dnf-json into the container, this way is not ideal, we maybe need to reconsider putting it all into a single file again or think about other ways to make this slightly easier. The tests/refactor hopefully makes this slightly easier now.