dockerfiles/ansible/Dockerfile
Marc Cornellà 7ac4881609 Use `apk --no-cache' on alpine images (#144)
This enables us to remove the following patterns that required
a `rm -rf /var/cache/apk`:

- `apk update`
- `apk add --update`
- `apk add --update-cache`

Supported since alpine 3.3.
2016-06-06 03:40:20 +00:00

36 lines
633 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
MAINTAINER Christian Koep <christiankoep@gmail.com>
RUN builddeps=' \
python-dev \
py-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" ]