dockerfiles/ansible/Dockerfile

36 lines
642 B
Docker
Raw Permalink Normal View History

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
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=' \
python-dev \
py2-pip \
2016-05-28 19:29:32 +02:00
musl-dev \
openssl-dev \
libffi-dev \
gcc \
' \
&& 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" ]