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
|
|
|
|
#
|
2020-05-15 22:39:33 +02:00
|
|
|
FROM python:3-alpine
|
2017-04-04 09:19:34 +02:00
|
|
|
LABEL maintainer "Christian Koep <christiankoep@gmail.com>"
|
2016-05-28 19:29:32 +02:00
|
|
|
|
|
|
|
RUN builddeps=' \
|
|
|
|
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 \
|
|
|
|
$builddeps \
|
|
|
|
&& pip install \
|
|
|
|
ansible \
|
|
|
|
&& apk del --purge $builddeps
|
|
|
|
|
|
|
|
ENTRYPOINT [ "ansible" ]
|