Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.75 KB

File metadata and controls

56 lines (35 loc) · 1.75 KB

docker-img-ansible

An multi-arch docker image based on node, containing python, git and ansible-core.

This repository contains:

  • Dockerfile - builds a container from node:<version>-slim and installs Python packages and Ansible collections
  • pip-requirements.txt - specifies Python package versions including ansible-core
  • requirements.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)

Image name

Images are published to GitHub Container Registry under the repository path:

ghcr.io/timherrm/docker-img-ansible

Packages can be found here

Tags produced by the workflow

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 on main

Pulling the image

docker pull ghcr.io/timherrm/docker-img-ansible:latest

Managing Dependencies

Python Packages

Python packages and their versions are managed in pip-requirements.txt. To add or update Python packages:

  1. Edit pip-requirements.txt
  2. Push to main
  3. The workflow will build a new image with updated packages

Ansible Collections

Ansible collections are managed in requirements.yml. To add or update collections:

  1. Edit galaxy-requirements.yml
  2. Push to main
  3. The workflow will build a new image with updated collections

License

See LICENSE in this repository.