File tree Expand file tree Collapse file tree 2 files changed +46
-2
lines changed Expand file tree Collapse file tree 2 files changed +46
-2
lines changed Original file line number Diff line number Diff 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/)
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+ # 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]\n localhost 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" ]
You can’t perform that action at this time.
0 commit comments