File tree Expand file tree Collapse file tree 2 files changed +49
-1
lines changed Expand file tree Collapse file tree 2 files changed +49
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ A Docker image for run the [Ansible][ansible_official] Engine on Alpine Linux.
1010
1111- ` 2.3 ` [ * (Dockerfile)* ] ( https://github.com/chusiang/ansible.dockerfile/blob/master/v2.3/Dockerfile )
1212- ` 2.4 ` [ * (Dockerfile)* ] ( https://github.com/chusiang/ansible.dockerfile/blob/master/v2.4/Dockerfile )
13- - ` 2.5 ` , ` latest ` [ * (Dockerfile)* ] ( https://github.com/chusiang/ansible.dockerfile/blob/master/v2.5/Dockerfile )
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 )
1415
1516## Build image
1617
@@ -65,6 +66,7 @@ Enjoy it !
6566
6667### 2018
6768
69+ * 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).
6870* 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).
6971* 02/19: The `2.4` image has upgraded the ansible from `2.4.2` to `2.4.3`.
7072* 01/10: Refactor the architecture. Add `2.4` image and add the `ansible-lint` package.
Original file line number Diff line number Diff line change 1+ FROM alpine:3.7
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.6.0,<2.7.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