A pyrig plugin to integrate containers.
pyrig-containers is a pyrig plugin that packages your project as a container image and publishes it on every release.
In addition to pyrig's requirements, you will need:
podman— the container engine used for building and running images.podman-compose(optional) — only needed if you compose up outside of the project's virtual environment as this plugin automatically adds it to your development dependencies.
Run from the project root. Run inside the project's virtual environment
(e.g.: via uv run) if podman-compose is not on the system PATH:
bash compose-up.sh build
bash compose-up.sh pullThis plugin targets Podman with podman-compose.
We do not guarantee compatibility with Docker or other container engines.
- Containerfile — a ready-to-use
Containerfilegenerated at the project root. - Compose files — a shared
compose.ymland overrides for building locally or pulling the published image. - Compose up script — a
compose-up.shscript to simplify running Compose commands with the correct files and arguments. - Container tooling — wrappers for the container engine (Podman) and the GitHub Container Registry, each contributing a badge.
- Automatic publishing — deploy calls a reusable container-image workflow with separate build and publish jobs after a successful release.
uv add pyrig-containers --dev
uv run pyrig syncFull documentation, including the auto-generated API reference, is available on the documentation site.