From f966242805e67f91bffdc5f9eb02096bb5e1f856 Mon Sep 17 00:00:00 2001 From: William Yeh Date: Mon, 30 May 2016 11:46:11 +0800 Subject: Add: new `mini` series for building minimal images from playbooks. --- mini-test/Dockerfile.alpine3 | 15 +++++++++++++++ mini-test/playbook.yml | 5 +++++ 2 files changed, 20 insertions(+) create mode 100644 mini-test/Dockerfile.alpine3 create mode 100644 mini-test/playbook.yml (limited to 'mini-test') diff --git a/mini-test/Dockerfile.alpine3 b/mini-test/Dockerfile.alpine3 new file mode 100644 index 0000000..78e7521 --- /dev/null +++ b/mini-test/Dockerfile.alpine3 @@ -0,0 +1,15 @@ +# Dockerfile for building (near-)minimal nginx +# + + +# pull base image +FROM ansible_mini_apline3 + +MAINTAINER William Yeh + +#ENV APK_LIST apk-list +#ENV PIP_LIST pip-list + +ENTRYPOINT ["/usr/sbin/nginx"] +#CMD ["-g", "daemon off;"] +CMD ["-v"] diff --git a/mini-test/playbook.yml b/mini-test/playbook.yml new file mode 100644 index 0000000..898dfc5 --- /dev/null +++ b/mini-test/playbook.yml @@ -0,0 +1,5 @@ +- hosts: all + become: True + tasks: + - name: install nginx + apk: name=nginx state=present -- cgit v1.2.3