Added workdir to ubuntu file, updated README
This commit is contained in:
parent
ad048dee69
commit
ad173d3432
@ -8,4 +8,6 @@ RUN apt-get update \
|
|||||||
ansible \
|
ansible \
|
||||||
&& apt-get autoclean
|
&& apt-get autoclean
|
||||||
|
|
||||||
|
WORKDIR /site
|
||||||
|
|
||||||
|
CMD ["ansible-playbook", "--help"]
|
||||||
|
14
README.md
14
README.md
@ -1,17 +1,19 @@
|
|||||||
# ansible-controller
|
# 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 \
|
docker run -it --rm \
|
||||||
-v /path/to/site/:/site \
|
-v /path/to/site/:/site \
|
||||||
-v /path/to/ansible-user-ssh/:/root/.ssh:ro \
|
-v /path/to/ansible-user-ssh/:/root/.ssh:ro \
|
||||||
--tmpfs /root/.ansible \
|
--tmpfs /root/.ansible \
|
||||||
aal/ansible-controller \
|
registry.chmuul.net/ansible-controller:ubuntu-16.04 \
|
||||||
ansible-playbook site.yml
|
ansible-playbook site.yml
|
||||||
|
|
||||||
|
7
build.sh
7
build.sh
@ -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
|
|
Loading…
Reference in New Issue
Block a user