Skip to content

Commit ee8c936

Browse files
committed
1 parent f0f06d4 commit ee8c936

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ A Docker image for run the [Ansible][ansible_official] Engine on Alpine Linux.
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)
1313
- `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)
1516

1617
## Build image
1718

@@ -66,6 +67,7 @@ Enjoy it !
6667
6768
### 2018
6869
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).
6971
* 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).
7072
* 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).
7173
* 02/19: The `2.4` image has upgraded the ansible from `2.4.2` to `2.4.3`.

v2.7/Dockerfile

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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]\nlocalhost 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" ]

0 commit comments

Comments
 (0)