User:Ajak/podman for Development and Binhosting

Using podman, one can create a very simple and powerful ebuild testing and binhost/binpkg generation environment. I will use the former use case as an example to start off with.

We start by configuring  configurations in whatever way we want, but importantly they should be somehow stored on the host running podman. We will assume there is a target configuration in, with binary packages in  , containing a world file called.

So an unprivileged user can use the resulting container, we need to also host a local registry.

This is all we need to build the container. Using the  script here:

The builds a Podman image that:
 * Uses the host's distfiles and
 * Uses the binpkgs from  in the container as
 * Uses the Portage configuration from the subdirectory of  corresponding to the argument passed to the script. In this case   will be bind mounted to   in the container, and   will be symlinked to
 * Does a full world update, populating the PKGDIR with any new packages that can be consumed by other systems
 * Is tagged and pushed to our local registry

After running this script, we can see the tagged images:

We can now use this image as an unprivileged user using the  script, here.