File tree Expand file tree Collapse file tree 2 files changed +52
-2
lines changed Expand file tree Collapse file tree 2 files changed +52
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ A Docker image for run the [Ansible][ansible_official] Engine on Alpine Linux.
1212- ` 2.4 ` [ * (Dockerfile)* ] ( https://github.com/chusiang/ansible.dockerfile/blob/master/v2.4/Dockerfile )
1313- ` 2.5 ` [ * (Dockerfile)* ] ( https://github.com/chusiang/ansible.dockerfile/blob/master/v2.5/Dockerfile )
1414- ` 2.6 ` [ * (Dockerfile)* ] ( https://github.com/chusiang/ansible.dockerfile/blob/master/v2.6/Dockerfile )
15- - ` 2.7 ` , ` latest ` [ * (Dockerfile)* ] ( https://github.com/chusiang/ansible.dockerfile/blob/master/v2.7/Dockerfile )
15+ - ` 2.7 ` [ * (Dockerfile)* ] ( https://github.com/chusiang/ansible.dockerfile/blob/master/v2.7/Dockerfile )
16+ - ` 2.8 ` , ` latest ` [ * (Dockerfile)* ] ( https://github.com/chusiang/ansible.dockerfile/blob/master/v2.8/Dockerfile )
1617
1718## Build image
1819
@@ -65,6 +66,10 @@ Enjoy it !
6566
6667## History
6768
69+ ### 2019
70+
71+ * 07/04: Add `2.8` image, the Ansible v2.8.0 release at [May 17 2019](https://github.com/ansible/ansible/releases/tag/v2.8.0), and remove install the vim.
72+
6873### 2018
6974
7075* 10/11: Add `2.7` image, the Ansible v2.7.0 release at [Wed Oct 3 20:26:57 2018 -0700](https://github.com/ansible/ansible/releases/tag/v2.7.0).
@@ -75,7 +80,7 @@ Enjoy it !
7580
7681## License
7782
78- MIT license from 2017-2018 .
83+ MIT license from 2017-2019 .
7984
8085## Author Information
8186
Original file line number Diff line number Diff line change 1+ FROM alpine:3.10
2+
3+ MAINTAINER Chu-Siang Lai <
[email protected] >
4+
5+ RUN echo "===> Update the index of available packages ..." && \
6+ apk update
7+
8+ RUN echo "===> Install the requires apk package and python ..." && \
9+ apk add --no-cache build-base python py-pip python-dev \
10+ libffi-dev openssl-dev
11+
12+ RUN echo "===> Upgrade the pip to lastest ..." && \
13+ pip install -U pip cffi
14+
15+ RUN echo "===> Install the ansible ..." && \
16+ pip install 'ansible>=2.8.0,<2.9.0'
17+
18+ RUN echo "===> Install the ansible-lint ..." && \
19+ pip install 'ansible-lint'
20+
21+ RUN echo "===> Disable localhost warning message ..." && \
22+ mkdir /etc/ansible && \
23+ /bin/echo -e "[local]\n localhost ansible_connection=local" > /etc/ansible/hosts
24+
25+ RUN echo "===> Install some package ..." && \
26+ apk add --update --no-cache \
27+ bash \
28+ bash-completion \
29+ curl \
30+ git \
31+ make \
32+ openssh-client \
33+ sshpass
34+
35+ RUN echo "===> Removing package cache ..." && \
36+ apk del build-dependencies ; \
37+ rm -rf /var/cache/apk/* && \
38+ rm -rf ~/.cache/pip
39+
40+ ONBUILD RUN echo "===> Updating TLS certificates ..." && \
41+ apk add --update --no-cache openssl ca-certificates
42+
43+ WORKDIR /srv
44+
45+ CMD [ "ansible-playbook" , "--version" ]
You can’t perform that action at this time.
0 commit comments