https://github.com/buluma/docker-molecule-images
Docker Molecule Images for Testing Ansible Roles.
https://github.com/buluma/docker-molecule-images
alpine archlinux debian docker-image fedora opensuse ubuntu
Last synced: about 2 months ago
JSON representation
Docker Molecule Images for Testing Ansible Roles.
- Host: GitHub
- URL: https://github.com/buluma/docker-molecule-images
- Owner: buluma
- License: apache-2.0
- Created: 2023-01-02T03:05:43.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T19:25:19.000Z (over 1 year ago)
- Last Synced: 2025-01-14T04:51:26.310Z (about 1 year ago)
- Topics: alpine, archlinux, debian, docker-image, fedora, opensuse, ubuntu
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/buluma/docker-molecule-images
- Size: 160 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Molecule Images
Docker Molecule Images for Testing Ansible Roles - A comprehensive collection of containerized Linux distributions designed specifically for testing Ansible playbooks across multiple operating systems.
## Overview
This project provides ready-to-use Docker images for numerous Linux distributions, enabling developers to test their Ansible roles in realistic environments without requiring full virtual machines. Each image is carefully configured with the appropriate init system (systemd, OpenRC, or upstart) to properly support service management during Ansible testing.
## Available Distributions
### Alpine Linux
- [alpine-openrc](alpine-openrc/) - Alpine Linux with OpenRC init system
### Amazon Linux
- [amazonlinux2023](amazonlinux2023/) - Amazon Linux 2023 with systemd
- [amazonlinux2](amazonlinux2/) - Amazon Linux 2 with systemd
- [amazonlinux1](amazonlinux1/) - Amazon Linux 1 with upstart ⚠️ *(Deprecated - EOL July 2023)*
### Arch Linux
- [archlinux](archlinux/) - Arch Linux with systemd
### CentOS
- [centos-stream9](centos-stream9/) - CentOS Stream 9 with systemd
- [centos7](centos7/) - CentOS 7 with systemd ⚠️ *(Deprecated - EOL June 2024)*
### Debian
- [debian13](debian13/) - Debian 13 (Trixie) with systemd
- [debian12](debian12/) - Debian 12 (Bookworm) with systemd
- [debian11](debian11/) - Debian 11 (Bullseye) with systemd
- [debian10](debian10/) - Debian 10 (Buster) with systemd ⚠️ *(Deprecated - EOL June 2024)*
- [debian9](debian9/) - Debian 9 (Stretch) with systemd ⚠️ *(Deprecated - EOL June 2022)*
### Fedora
- [fedora43](fedora43/) - Fedora 43 with systemd
- [fedora42](fedora42/) - Fedora 42 with systemd
- [fedora41](fedora41/) - Fedora 41 with systemd
- [fedora40](fedora40/) - Fedora 40 with systemd
- [fedora39](fedora39/) - Fedora 39 with systemd ⚠️ *(Deprecated - EOL November 2024)*
- [fedora38](fedora38/) - Fedora 38 with systemd ⚠️ *(Deprecated - EOL May 2024)*
- [fedora37](fedora37/) - Fedora 37 with systemd ⚠️ *(Deprecated - EOL November 2023)*
### Kali Linux
- [kalilinux](kalilinux/) - Kali Linux rolling with systemd
### OpenSUSE
- [opensuse](opensuse/) - OpenSUSE with systemd
### Oracle Linux
- [oraclelinux9](oraclelinux9/) - Oracle Linux 9 with systemd
- [oraclelinux8](oraclelinux8/) - Oracle Linux 8 with systemd
- [oraclelinux7](oraclelinux7/) - Oracle Linux 7 with systemd ⚠️ *(Deprecated - EOL June 2024)*
### Rocky Linux
- [rockylinux10](rockylinux10/) - Rocky Linux 10 with systemd
- [rockylinux9](rockylinux9/) - Rocky Linux 9 with systemd
- [rockylinux8](rockylinux8/) - Rocky Linux 8 with systemd ⚠️ *(Deprecated - EOL May 2025)*
### AlmaLinux
- [almalinux10](almalinux10/) - AlmaLinux 10 with systemd
- [almalinux9](almalinux9/) - AlmaLinux 9 with systemd
### RHEL
- [rhel9](rhel9/) - Red Hat Enterprise Linux 9 with systemd
### SUSE
- [sles15](sles15/) - SUSE Linux Enterprise Server 15 with systemd
- [opensuse-tumbleweed](opensuse-tumbleweed/) - openSUSE Tumbleweed with systemd
### Ubuntu
- [ubuntu2510](ubuntu2510/) - Ubuntu 25.10 with systemd
- [ubuntu2504](ubuntu2504/) - Ubuntu 25.04 (Plucky) with systemd
- [ubuntu2410](ubuntu2410/) - Ubuntu 24.10 (Oracular) with systemd
- [ubuntu2404](ubuntu2404/) - Ubuntu 24.04 (Noble) with systemd
- [ubuntu2304](ubuntu2304/) - Ubuntu 23.04 (Lunar) with systemd
- [ubuntu2204](ubuntu2204/) - Ubuntu 22.04 (Jammy) with systemd
- [ubuntu2004](ubuntu2004/) - Ubuntu 20.04 (Focal) with systemd ⚠️ *(Deprecated - EOL April 2025)*
- [ubuntu1804](ubuntu1804/) - Ubuntu 18.04 (Bionic) with systemd ⚠️ *(Deprecated - EOL April 2023)*
## Usage
### With Ansible Molecule
Add to your `molecule.yml` configuration:
```yaml
driver:
name: docker
platforms:
- name: instance
image: ghcr.io/buluma/:latest
# Or use Docker Hub: docker.io/buluma/:latest
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
command: ""
tty: true
```
### Standalone Usage
Pull and run any image directly:
```bash
# Pull the image
docker pull ghcr.io/buluma/ubuntu2204:latest
# Run interactively
docker run -it --rm --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:rw ghcr.io/buluma/ubuntu2204:latest
```
## Build Status
### Alpine
[](https://github.com/buluma/docker-molecule-images/actions/workflows/alpine-openrc.yml)
### Archlinux
[](https://github.com/buluma/docker-molecule-images/actions/workflows/archlinux.yml)
### Amazonlinux
[](https://github.com/buluma/docker-molecule-images/actions/workflows/amazonlinux2023.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/amazonlinux2.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/amazonlinux1.yml)
### Centos
[](https://github.com/buluma/docker-molecule-images/actions/workflows/centos-stream9.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/centos7.yml)
### Debian
[](https://github.com/buluma/docker-molecule-images/actions/workflows/debian13.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/debian12.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/debian11.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/debian10.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/debian9.yml)
### Fedora
[](https://github.com/buluma/docker-molecule-images/actions/workflows/fedora43.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/fedora42.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/fedora41.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/fedora40.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/fedora39.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/fedora38.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/fedora37.yml)
### Kalilinux
[](https://github.com/buluma/docker-molecule-images/actions/workflows/kalilinux.yml)
### Opensuse
[](https://github.com/buluma/docker-molecule-images/actions/workflows/opensuse.yml)
### Oraclelinux
[](https://github.com/buluma/docker-molecule-images/actions/workflows/oraclelinux9.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/oraclelinux8.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/oraclelinux7.yml)
### Rockylinux
[](https://github.com/buluma/docker-molecule-images/actions/workflows/rockylinux10.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/rockylinux9.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/rockylinux8.yml)
### AlmaLinux
[](https://github.com/buluma/docker-molecule-images/actions/workflows/almalinux10.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/almalinux9.yml)
### RHEL
[](https://github.com/buluma/docker-molecule-images/actions/workflows/rhel9.yml)
### SUSE
[](https://github.com/buluma/docker-molecule-images/actions/workflows/sles15.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/opensuse-tumbleweed.yml)
### Ubuntu
[](https://github.com/buluma/docker-molecule-images/actions/workflows/ubuntu2510.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/ubuntu2504.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/ubuntu2410.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/ubuntu2404.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/ubuntu2304.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/ubuntu2204.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/ubuntu2004.yml)
[](https://github.com/buluma/docker-molecule-images/actions/workflows/ubuntu1804.yml)
## Features
- ✅ **Multi-Architecture Support**: Images built for multiple architectures (amd64, arm64, arm/v6, arm/v7, ppc64le, s390x, 386)
- ✅ **Proper Init Systems**: Each distribution configured with appropriate init system for service testing
- ✅ **Security Scanning**: Integrated with Docker Scout for automated vulnerability assessments
- ✅ **Mandatory Verification**: All releases are verified via CI tests before deployment
- ✅ **Consistent Interface**: Uniform configuration approach across all distributions
- ✅ **Regular Updates**: Automated builds with Renovate bot for keeping base images current
- ✅ **CI/CD Ready**: Optimized for use in continuous integration pipelines
## Contributing
1. Fork the repository
2. Create a new branch for your distribution
3. Add a new directory with your Dockerfile
4. Create a corresponding workflow in `.github/workflows/`
5. Submit a pull request
## License
Licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for more information.
## Author Information
Created and maintained by Michael Buluma ([@buluma](https://github.com/buluma))