Added workdir to ubuntu file, updated README

This commit is contained in:
Paul Voss 2016-07-31 14:44:58 +02:00
parent ad048dee69
commit ad173d3432
3 changed files with 10 additions and 13 deletions

View File

@ -8,4 +8,6 @@ RUN apt-get update \
ansible \
&& apt-get autoclean
WORKDIR /site
CMD ["ansible-playbook", "--help"]

View File

@ -1,17 +1,19 @@
# ansible-controller
A fedora-based docker image for running ansible playbooks
[![Build Status](https://drone.chmuul.net/api/badges/aal/ansible-controller/status.svg)](https://drone.chmuul.net/aal/ansible-controller)
## Build the image
A docker image for running ansible playbooks
docker build -t aal/ansible-controller .
Available in two flavours:
## Run ansible-controller
* registry.chmuul.net/ansible-controller:ubuntu-16.04
* registry.chmuul.net/ansible-controller:fedora-24
## run ansible-controller
docker run -it --rm \
-v /path/to/site/:/site \
-v /path/to/ansible-user-ssh/:/root/.ssh:ro \
--tmpfs /root/.ansible \
aal/ansible-controller \
registry.chmuul.net/ansible-controller:ubuntu-16.04 \
ansible-playbook site.yml

View File

@ -1,7 +0,0 @@
#!/bin/bash
docker build -t registry.chmuul.net/ansible-controller:ubuntu-16.04 -f Dockerfile.ubuntu-16.04 ${@} .
docker build -t registry.chmuul.net/ansible-controller:fedora-24 -f Dockerfile.fedora-24 ${@} .
docker push registry.chmuul.net/ansible-controller:ubuntu-16.04
docker push registry.chmuul.net/ansible-controller:fedora-24