File tree 2 files changed +49
-1
lines changed
2 files changed +49
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ A Docker image for run the [Ansible][ansible_official] Engine on Alpine Linux.
11
11
- ` 2.3 ` [ * (Dockerfile)* ] ( https://github.com/chusiang/ansible.dockerfile/blob/master/v2.3/Dockerfile )
12
12
- ` 2.4 ` [ * (Dockerfile)* ] ( https://github.com/chusiang/ansible.dockerfile/blob/master/v2.4/Dockerfile )
13
13
- ` 2.5 ` [ * (Dockerfile)* ] ( https://github.com/chusiang/ansible.dockerfile/blob/master/v2.5/Dockerfile )
14
- - ` 2.6 ` , ` latest ` [ * (Dockerfile)* ] ( https://github.com/chusiang/ansible.dockerfile/blob/master/v2.6/Dockerfile )
14
+ - ` 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
16
16
17
## Build image
17
18
@@ -66,6 +67,7 @@ Enjoy it !
66
67
67
68
### 2018
68
69
70
+ * 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).
69
71
* 07/10: Add `2.6` image, the Ansible v2.6.0 release at [Thu Jun 28 14:38:38 2018 -0700](https://github.com/ansible/ansible/releases/tag/v2.6.0).
70
72
* 04/03: Add `2.5` image, the Ansible v2.5.0 release at [Thu Mar 22 17:09:19 2018 -0700](https://github.com/ansible/ansible/releases/tag/v2.5.0).
71
73
* 02/19: The `2.4` image has upgraded the ansible from `2.4.2` to `2.4.3`.
Original file line number Diff line number Diff line change
1
+ FROM alpine:3.8
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.7.0,<2.8.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
+ vim
35
+
36
+ RUN echo "===> Removing package cache ..." && \
37
+ apk del build-dependencies ; \
38
+ rm -rf /var/cache/apk/* && \
39
+ rm -rf ~/.cache/pip
40
+
41
+ ONBUILD RUN echo "===> Updating TLS certificates ..." && \
42
+ apk add --update --no-cache openssl ca-certificates
43
+
44
+ WORKDIR /srv
45
+
46
+ CMD [ "ansible-playbook" , "--version" ]
You can’t perform that action at this time.
0 commit comments