Sign inSign up

chzerv/docker-centos-ansible

By chzerv

•Updated over 5 years ago

CentOS images capable to use systemd, with ansible and ansible testing tools pre-installed.

Image
1

983

chzerv/docker-centos-ansible repository overview

⁠CentOS 7 Image for Ansible Testing

Build Docker Cloud Build Status

This Dockerfile builds a CentOS 7 based container, capable to use systemd with Ansible and Ansible testing tools pre-installed.

⁠Branches/Tags

Each branch of this repository represents a CentOS version, with the master branch representing the latest version. Pull the branch (version) you are interested in.

BranchDistribution versionImage tag
masterlatest (8)latest, 8
777

⁠How to build locally

  1. Install Docker⁠ or Podman⁠.
  2. Clone the branch you're interested in. For example, for CentOS 7: git clone --branch=7 https://github.com/chzerv/docker-centos-ansible.git.
  3. cd into the directory and run docker build -t centos7-ansible .

⁠How to use

  1. Install Docker⁠ or Podman⁠.

  2. Pull this image from Docker hub: docker pull chzerv/docker-centos-ansible:7 (or use the image you built locally).

  3. Run a container:

    docker run -d --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro docker-centos-ansible:7
    
  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.

Tag summary

Content type

Image

Digest

Size

156.7 MB

Last updated

over 5 years ago

docker pull chzerv/docker-centos-ansible