Public | Automated Build

Last pushed: a month ago
Short Description
Ansibilize latest Fedora base image for testing.
Full Description

Fedora Latest Ansible Test Image

Fedora Latest Docker container for Ansible playbook and role testing.

How to Build

This image is built on Docker Hub automatically any time the upstream OS container is rebuilt, and any time a commit is made or merged to the master branch. But if you need to build the image on your own locally, do the following:

  1. Install Docker.
  2. Clone this repository
     $ git clone xxxxxx
    
  3. Changed directory into the cloned repository
     $ cd xxxxxxx
    
  4. Execute docker build
     $ docker build -t fedora-latest-ansible-custom
    

How to Use

Pull directly from DockerHub

  1. Install Docker.
  2. Pull image from Docker Hub:
     $ docker pull v0rts/docker-fedora-latest-ansible:latest
    
  3. Run a container from the image

     $ docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro v0rts/docker-fedora-latest-ansible:latest /usr/lib/systemd/systemd
    

    Image built from locally

  4. Pull using tag from build step

     $ docker pull fedora-latest-ansible-custom
    
  5. Run a container from the image

     $ docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro v0rts/docker-fedora-latest-ansible:latest /usr/lib/systemd/systemd
    

    Use Ansible inside the container

     $ docker exec --tty [container_id] env TERM=xterm ansible-playbook /path/to/ansible/playbook.yml --syntax-check
    

Important Note

This image is for testing purposes only!!

Author

Created in 2016 by Chad Sailer

Docker Pull Command
Owner
v0rts

Comments (0)