Build Image Container Image¶
Container builder toolbox with podman, buildah, and skopeo configured for rootless GitLab Runner jobs.
Features¶
Includes podman, buildah, and skopeo so you can build, run, and publish OCI images from a single container.
- Ships tuned
containers.conf,storage.conf, and policy defaults that mirror my homelab runner configuration. - Provides a ready-to-use non-root
ciuser with subuid/subgid mappings for rootless builds.
Usage¶
Pull the image¶
Build a container inside the toolbox¶
podman run --rm -it \
--userns=keep-id \
--device /dev/fuse \
-v $(pwd):/workspace \
-w /workspace \
registry.gitlab.com/niclas-zone/ctr/build-image:latest \
buildah bud -t my-app .
Author¶
Niclas Heinz
Contributing¶
Contributions are welcome! Please open an issue or submit a merge request if you have suggestions or improvements.
License¶
This project is licensed under the MIT License. See LICENSE for the full text.