From 82ea36a35b75961ef30e6f07d0ed96a0fdc36974 Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 28 May 2016 19:29:32 +0200 Subject: [PATCH] add ansible (#141) --- ansible/Dockerfile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ansible/Dockerfile diff --git a/ansible/Dockerfile b/ansible/Dockerfile new file mode 100644 index 0000000..ca3d303 --- /dev/null +++ b/ansible/Dockerfile @@ -0,0 +1,37 @@ +# https://www.ansible.com/ +# +# docker run --rm \ +# -it \ +# -v ${PWD}/hosts:/etc/ansible/hosts \ +# -v ${PWD}/ansible.cfg:/etc/ansible/ansible.cfg \ +# -v ${HOME}/.ssh:/root/.ssh:ro \ +# ansible all -m ping +# +FROM alpine:latest +MAINTAINER Christian Koep + +RUN builddeps=' \ + python-dev \ + py-pip \ + musl-dev \ + openssl-dev \ + libffi-dev \ + gcc \ + ' \ + && apk update \ + && apk add \ + ca-certificates \ + python \ + py-paramiko \ + py-yaml \ + py-jinja2 \ + py-httplib2 \ + $builddeps \ + && rm -rf /var/cache/apk/* \ + && pip install --upgrade pip \ + && pip install \ + ansible \ + six \ + && apk del --purge $builddeps + +ENTRYPOINT [ "ansible" ]