mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-30 13:28:30 +01:00
7eea00edf3
Signed-off-by: Michael Käufl <dockerfiles@c.michael-kaeufl.de>
36 lines
644 B
Docker
36 lines
644 B
Docker
# 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
|
|
LABEL maintainer "Christian Koep <christian.koep@fom-net.de>"
|
|
|
|
RUN builddeps=' \
|
|
python-dev \
|
|
py2-pip \
|
|
musl-dev \
|
|
openssl-dev \
|
|
libffi-dev \
|
|
gcc \
|
|
' \
|
|
&& apk --no-cache add \
|
|
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" ]
|