From ae06b63dc27567ebe8b8fde7f32e268ae706182d Mon Sep 17 00:00:00 2001 From: William Yeh Date: Thu, 17 Sep 2015 15:26:56 +0800 Subject: Add: support for Alpine 3 --- alpine3/Dockerfile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 alpine3/Dockerfile (limited to 'alpine3/Dockerfile') diff --git a/alpine3/Dockerfile b/alpine3/Dockerfile new file mode 100644 index 0000000..04efa90 --- /dev/null +++ b/alpine3/Dockerfile @@ -0,0 +1,36 @@ +# Dockerfile for building Ansible image for Alpine 3, with as few additional software as possible. +# +# @see https://github.com/gliderlabs/docker-alpine/blob/master/docs/usage.md +# +# Version 1.0 +# + + +# pull base image +FROM alpine:3.2 + +MAINTAINER William Yeh + + +RUN echo "===> Adding Python runtime..." && \ + apk --update add python py-pip openssl ca-certificates && \ + apk --update add --virtual build-dependencies python-dev build-base && \ + pip install --upgrade pip && \ + \ + \ + echo "===> Installing Ansible..." && \ + pip install ansible && \ + \ + \ + echo "===> Removing package list..." && \ + apk del build-dependencies && \ + rm -rf /var/cache/apk/* && \ + \ + \ + echo "===> Adding hosts for convenience..." && \ + mkdir -p /etc/ansible && \ + echo '[local]\nlocalhost\n' > /etc/ansible/hosts + + +# default command: display Ansible version +CMD [ "ansible-playbook", "--version" ] -- cgit v1.2.3