2016-05-28 19:29:32 +02:00
|
|
|
# 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
|
2016-09-20 00:25:05 +02:00
|
|
|
MAINTAINER Christian Koep <christian.koep@fom-net.de>
|
2016-05-28 19:29:32 +02:00
|
|
|
|
|
|
|
RUN builddeps=' \
|
|
|
|
python-dev \
|
|
|
|
py-pip \
|
|
|
|
musl-dev \
|
|
|
|
openssl-dev \
|
|
|
|
libffi-dev \
|
|
|
|
gcc \
|
|
|
|
' \
|
2016-06-06 05:40:20 +02:00
|
|
|
&& apk --no-cache add \
|
2016-05-28 19:29:32 +02:00
|
|
|
ca-certificates \
|
|
|
|
python \
|
|
|
|
py-paramiko \
|
|
|
|
py-yaml \
|
|
|
|
py-jinja2 \
|
|
|
|
py-httplib2 \
|
|
|
|
$builddeps \
|
|
|
|
&& pip install --upgrade pip \
|
|
|
|
&& pip install \
|
|
|
|
ansible \
|
|
|
|
six \
|
|
|
|
&& apk del --purge $builddeps
|
|
|
|
|
|
|
|
ENTRYPOINT [ "ansible" ]
|