Skip to content

Commit eb7f577

Browse files
committed
Add 2.4 reversion and docker tag
1 parent a772c34 commit eb7f577

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ 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`, `latest` [*(Dockerfile)*](v2.3/Dockerfile)
11+
- `2.3`, [*(Dockerfile)*](v2.3/Dockerfile)
12+
- `2.4`, `latest` [*(Dockerfile)*](v2.4/Dockerfile)
1213

1314
## Build image
1415

@@ -65,4 +66,4 @@ MIT license from 2017-2018.
6566
6667
## Author Information
6768
68-
1. [Chu-Siang Lai](https://github.com/chusiang/)
69+
1. [Chu-Siang Lai](https://github.com/chusiang/)

v2.4/Dockerfile

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
FROM alpine:3.7
2+
3+
MAINTAINER Chu-Siang Lai <[email protected]>
4+
5+
# Update the index of available packages.
6+
RUN apk update
7+
8+
# Install the requires apk package and python.
9+
RUN apk add --no-cache build-base python py-pip python-dev \
10+
libffi-dev openssl-dev
11+
12+
# Upgrade the pip to lastest.
13+
RUN pip install -U pip cffi
14+
15+
# Setup the ansible.
16+
RUN pip install 'ansible>=2.4.0,<2.5.0'
17+
18+
# for disable localhost warning message.
19+
RUN mkdir /etc/ansible && \
20+
/bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
21+
22+
RUN echo "===> Install some package ..." && \
23+
apk add --update --no-cache \
24+
bash \
25+
bash-completion \
26+
curl \
27+
git \
28+
make \
29+
openssh-client \
30+
sshpass \
31+
vim
32+
33+
RUN echo "===> Removing package cache ..." && \
34+
apk del build-dependencies ; \
35+
rm -rf /var/cache/apk/* && \
36+
rm -rf ~/.cache/pip
37+
38+
ONBUILD RUN echo "===> Updating TLS certificates ..." && \
39+
apk add --update openssl ca-certificates
40+
41+
WORKDIR /srv
42+
43+
CMD [ "ansible-playbook", "--version" ]

0 commit comments

Comments
 (0)