From ad173d3432d3195021e50bba8ba656ce60fe3b5c Mon Sep 17 00:00:00 2001 From: Paul Voss Date: Sun, 31 Jul 2016 14:44:58 +0200 Subject: [PATCH] Added workdir to ubuntu file, updated README --- Dockerfile.ubuntu-16.04 | 2 ++ README.md | 14 ++++++++------ build.sh | 7 ------- 3 files changed, 10 insertions(+), 13 deletions(-) delete mode 100755 build.sh diff --git a/Dockerfile.ubuntu-16.04 b/Dockerfile.ubuntu-16.04 index 0d68590..b4a5d24 100644 --- a/Dockerfile.ubuntu-16.04 +++ b/Dockerfile.ubuntu-16.04 @@ -8,4 +8,6 @@ RUN apt-get update \ ansible \ && apt-get autoclean +WORKDIR /site +CMD ["ansible-playbook", "--help"] diff --git a/README.md b/README.md index 8feb8a3..3955b7c 100644 --- a/README.md +++ b/README.md @@ -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 - diff --git a/build.sh b/build.sh deleted file mode 100755 index 5b1fa04..0000000 --- a/build.sh +++ /dev/null @@ -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