Public | Automated Build

Last pushed: 5 days ago
Short Description
Fedora 23 base image for ansible testing
Full Description

Fedora 23 Ansible Test Image

Fedora 23 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 fedora23-ansible-custom
    

How to Use

Pull directly from DockerHub

  1. Install Docker.
  2. Pull image from Docker Hub:
     $ docker pull v0rts/docker-fedora23-ansible:latest
    
  3. Run a container from the image
     $ docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro v0rts/docker-fedora23-ansible:latest /usr/lib/systemd/systemd
    

Image built from locally

  1. Pull using tag from build step
     $ docker pull fedora23-ansible-custom
    
  2. Run a container from the image
     $ docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro v0rts/docker-fedora23-ansible:latest /usr/lib/systemd/systemd
    

Use Ansible inside the container

```shell 
  $ 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
Source Repository

Comments (0)