diff options
author | William Yeh <william.pjyeh@gmail.com> | 2016-06-02 16:07:46 +0800 |
---|---|---|
committer | William Yeh <william.pjyeh@gmail.com> | 2016-06-02 16:07:46 +0800 |
commit | 042ddec8383b0755e60bb01dc93ae3378374b637 (patch) | |
tree | 2bf2051dbe6a8143a981528297b6a462c4a2cb37 /mini-test | |
parent | f966242805e67f91bffdc5f9eb02096bb5e1f856 (diff) | |
download | docker-ansible-042ddec8383b0755e60bb01dc93ae3378374b637.tar.gz docker-ansible-042ddec8383b0755e60bb01dc93ae3378374b637.tar.zst docker-ansible-042ddec8383b0755e60bb01dc93ae3378374b637.zip |
Add: `mini-debian8` tag.
Diffstat (limited to 'mini-test')
-rw-r--r-- | mini-test/Dockerfile.alpine3 | 2 | ||||
-rw-r--r-- | mini-test/Dockerfile.debian8 | 14 | ||||
-rw-r--r-- | mini-test/playbook.yml | 19 |
3 files changed, 31 insertions, 4 deletions
diff --git a/mini-test/Dockerfile.alpine3 b/mini-test/Dockerfile.alpine3 index 78e7521..a42fa33 100644 --- a/mini-test/Dockerfile.alpine3 +++ b/mini-test/Dockerfile.alpine3 | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | 4 | ||
5 | # pull base image | 5 | # pull base image |
6 | FROM ansible_mini_apline3 | 6 | FROM ansible_mini_alpine3 |
7 | 7 | ||
8 | MAINTAINER William Yeh <william.pjyeh@gmail.com> | 8 | MAINTAINER William Yeh <william.pjyeh@gmail.com> |
9 | 9 | ||
diff --git a/mini-test/Dockerfile.debian8 b/mini-test/Dockerfile.debian8 new file mode 100644 index 0000000..f41cbbb --- /dev/null +++ b/mini-test/Dockerfile.debian8 | |||
@@ -0,0 +1,14 @@ | |||
1 | # Dockerfile for building (near-)minimal nginx under Debian8 | ||
2 | # | ||
3 | |||
4 | |||
5 | # pull base image | ||
6 | FROM ansible_mini_debian8 | ||
7 | |||
8 | MAINTAINER William Yeh <william.pjyeh@gmail.com> | ||
9 | |||
10 | #ENV APK_LIST apk-list | ||
11 | |||
12 | ENTRYPOINT ["/usr/sbin/nginx"] | ||
13 | #CMD ["-g", "daemon off;"] | ||
14 | CMD ["-v"] | ||
diff --git a/mini-test/playbook.yml b/mini-test/playbook.yml index 898dfc5..b8cccda 100644 --- a/mini-test/playbook.yml +++ b/mini-test/playbook.yml | |||
@@ -1,5 +1,18 @@ | |||
1 | - hosts: all | 1 | - hosts: all |
2 | become: True | 2 | become: true |
3 | tasks: | 3 | tasks: |
4 | - name: install nginx | 4 | - name: DEBUG |
5 | apk: name=nginx state=present | 5 | command: echo hello |
6 | |||
7 | - name: install nginx for Alpine | ||
8 | apk: name=nginx state=present | ||
9 | when: ansible_distribution == "Alpine" | ||
10 | |||
11 | - name: install nginx for Debian/Ubuntu | ||
12 | apt: name=nginx state=present | ||
13 | when: ansible_os_family == "Debian" | ||
14 | |||
15 | |||
16 | # Debian: | ||
17 | #rm -rf /etc/fonts /usr/share/fonts /usr/local/share/fonts /usr/share/X11 /usr/share/fontconfig /usr/share/doc | ||
18 | #rm -rf /etc/perl /usr/lib/x86_64-linux-gnu/perl | ||