Skip to content

Commit a8d82c4

Browse files
committed
Merge branch 'develop'
2 parents 0cd766d + 006003b commit a8d82c4

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ A Docker image for run the [Ansible][ansible_official] Engine on Alpine Linux.
88

99
## Supported tags and respective `Dockerfile` links
1010

11-
- `2.3`, [*(Dockerfile)*](https://github.com/chusiang/ansible.dockerfile/blob/master/v2.3/Dockerfile)
12-
- `2.4`, `latest` [*(Dockerfile)*](https://github.com/chusiang/ansible.dockerfile/blob/master/v2.4/Dockerfile)
11+
- `2.3` [*(Dockerfile)*](https://github.com/chusiang/ansible.dockerfile/blob/master/v2.3/Dockerfile)
12+
- `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)
1314

1415
## Build image
1516

@@ -64,6 +65,7 @@ Enjoy it !
6465
6566
### 2018
6667
68+
* 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).
6769
* 02/19: The `2.4` image has upgraded the ansible from `2.4.2` to `2.4.3`.
6870
* 01/10: Refactor the architecture. Add `2.4` image and add the `ansible-lint` package.
6971

v2.5/Dockerfile

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.5.0,<2.6.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)