chzerv / fedora32-systemd-ansible

Fedora 32 container capable to use systemd, for Ansible role and playbook testing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fedora 32 Container Image for Ansible Testing

This Dockerfile builds a Fedora 32 based container, capable to use systemd, mainly for Ansible role testing.

Tags

Tags are used to distinguish between Ansible versions and builds (e.g., testing vs stable).

  • latest: Latest stable version of Ansible.

How to build locally

  1. Install Docker.

  2. Clone the repository:

    git clone https://github.com/chzerv/fedora32-systemd-ansible.git
  3. cd into the directory and run docker build -t fedora32-systemd-ansible .

docker can be substituted for any other container engine, e.g., Podman.

How to use

  1. Install Docker.

  2. Pull this image from Docker hub:

    docker pull chzerv/fedora32-systemd-ansible:latest

    If you built the image locally, feel free to use it instead.

  3. Run a container:

    docker run -d --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro fedora32-systemd-ansible:latest
  4. Run Ansible inside that container:

    docker exec -it $container_id ansible --version

Notes

This image is used for testing Ansible roles and playbooks locally and/or in CI, hence, security is not a concern. It is not intended or recommended to use this image in production environments.

About

Fedora 32 container capable to use systemd, for Ansible role and playbook testing.

License:MIT License


Languages

Language:Dockerfile 100.0%