diff options
author | William Yeh <william.pjyeh@gmail.com> | 2016-05-30 11:46:11 +0800 |
---|---|---|
committer | William Yeh <william.pjyeh@gmail.com> | 2016-05-30 11:46:11 +0800 |
commit | f966242805e67f91bffdc5f9eb02096bb5e1f856 (patch) | |
tree | adbc4d5e7779f470dbf6e94b244ea33a9d9842d9 /mini-test | |
parent | 84d31fd8edaec467b7a22c9fcf9b0f3097539e6a (diff) | |
download | docker-ansible-f966242805e67f91bffdc5f9eb02096bb5e1f856.tar.gz docker-ansible-f966242805e67f91bffdc5f9eb02096bb5e1f856.tar.zst docker-ansible-f966242805e67f91bffdc5f9eb02096bb5e1f856.zip |
Add: new `mini` series for building minimal images from playbooks.
Diffstat (limited to 'mini-test')
-rw-r--r-- | mini-test/Dockerfile.alpine3 | 15 | ||||
-rw-r--r-- | mini-test/playbook.yml | 5 |
2 files changed, 20 insertions, 0 deletions
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 @@ | |||
1 | # Dockerfile for building (near-)minimal nginx | ||
2 | # | ||
3 | |||
4 | |||
5 | # pull base image | ||
6 | FROM ansible_mini_apline3 | ||
7 | |||
8 | MAINTAINER William Yeh <william.pjyeh@gmail.com> | ||
9 | |||
10 | #ENV APK_LIST apk-list | ||
11 | #ENV PIP_LIST pip-list | ||
12 | |||
13 | ENTRYPOINT ["/usr/sbin/nginx"] | ||
14 | #CMD ["-g", "daemon off;"] | ||
15 | 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 @@ | |||
1 | - hosts: all | ||
2 | become: True | ||
3 | tasks: | ||
4 | - name: install nginx | ||
5 | apk: name=nginx state=present | ||