Conversation
|
Could this be written in a Container? What does buildah do that you can't do in a container? |
Initially I was mounting container rootfs with buildah. I find buildah convenient to use from into a script. |
|
You can remove intermediate layers by doing two-stage build. Podman build is same tools/workflow as the rest of the containers. On first glance I don't see anything that would cause problems, you can also include some of the tool in the container. |
My intent was not to push buildah over podman but illustrating what I do to solve the following problem:
So I had no choice for that matter to start with an UBI container (ran with say podman or handled with buildah it does not really matter) and somehow switch to my Satellite repos (BaseOS, AppStream) away from ubi.repo Maybe it's not helpful I don't know. Working around those questions is not always trivial |
|
Thanks contributing, just was giving some suggestions. I'll look closer at this PR soon. |
Feel free to reject it. I'm wrapping my head about this for a long time. |
Example of building an image starting from an RHEL UBI container then using host RHEL subscription to use same repos instead of UBI repos