Makefile-based creation of container images with buildah and podman for automated testing of ansible roles with molecule.
This repository has been archived, see ansible-molecule-images
Any linux platform podman and buildah run on.
I use it on Fedora.
- bash
- buildah
- GNU make
- GNU parallel (optional)
- podman
Distribution | Version | Image on Docker Hub |
---|---|---|
Almalinux | 8 | jam82/molecule-almalinux:8 |
Latest | jam82/molecule-almalinux:latest | |
Alpine | 3.15 | jam82/molecule-alpine:3.15 |
3.16 | jam82/molecule-alpine:3.16 | |
3.17 | jam82/molecule-alpine:3.17 | |
3.18 | jam82/molecule-alpine:3.18 | |
Latest | jam82/molecule-alpine:latest | |
Archlinux | Latest | jam82/molecule-archlinux:latest |
Debian | 10 | jam82/molecule-debian:10 |
11 | jam82/molecule-debian:11 | |
12 | jam82/molecule-debian:12 | |
Latest | jam82/molecule-debian:latest | |
Testing | jam82/molecule-debian:testing | |
Unstable | jam82/molecule-debian:sid | |
Fedora | 37 | jam82/molecule-fedora:37 |
38 | jam82/molecule-fedora:38 | |
Latest | jam82/molecule-fedora:latest | |
Rawhide | jam82/molecule-fedora:rawhide | |
OpenSuse Leap | 15 | jam82/molecule-opensuse:15 |
Latest | jam82/molecule-opensuse:latest | |
OpenSuse Tumbleweed | Latest | jam82/molecule-opensuse:tumbleweed |
Oracle Linux | 8 | jam82/molecule-oraclelinux:8 |
9 | jam82/molecule-oraclelinux:9 | |
Latest | jam82/molecule-oraclelinux:latest | |
Ubuntu | 16.04 | jam82/molecule-ubuntu:16.04 |
18.04 | jam82/molecule-ubuntu:18.04 | |
20.04 | jam82/molecule-ubuntu:20.04 | |
22.04 | jam82/molecule-ubuntu:22.04 | |
Latest | jam82/molecule-ubuntu:latest |
The term container registry
in the following examples refers to
the default_registry configured in images/common.
make all
make push
This filters all local podman images built by $maintainer
and stored as
localhost/$image:$tag
and pushes them
to docker-daemon:$maintainer/molecule-$image:$tag
.
make docker
make parallel
For example, to build all Debian images and push them:
make debian
make push
Call the build script directly:
./images/almalinux/8
make push
- Author:: jam82 (jam@kabelmail.net)
- Copyright:: 2020, jam82
Thanks to @fgoebel for his contributions!
Licensed under MIT License; See LICENSE file in repository.