An multi-arch docker image based on node, containing python, git and ansible-core.
This repository contains:
Dockerfile- builds a container fromnode:<version>-slimand installs Python packages and Ansible collectionspip-requirements.txt- specifies Python package versions including ansible-corerequirements.yml- specifies Ansible collections to install.github/workflows/docker-build.yml- GitHub Actions workflow that builds multi-architecture images and pushes to GitHub Container Registry (ghcr.io)
Images are published to GitHub Container Registry under the repository path:
ghcr.io/timherrm/docker-img-ansiblePackages can be found here
The workflow creates these tags on each build:
ansible-<version>— the Ansible core version installed in the image (e.g.ansible-2.19.3)ansible-<version>-<YYYYMMDDhhmm>— Ansible version with build date and time (e.g.ansible-2.19.3-20251023hhmm)latest— points to the latest build onmain
docker pull ghcr.io/timherrm/docker-img-ansible:latestPython packages and their versions are managed in pip-requirements.txt. To add or update Python packages:
- Edit
pip-requirements.txt - Push to
main - The workflow will build a new image with updated packages
Ansible collections are managed in requirements.yml. To add or update collections:
- Edit
galaxy-requirements.yml - Push to
main - The workflow will build a new image with updated collections
See LICENSE in this repository.