File tree Expand file tree Collapse file tree 2 files changed +13
-16
lines changed Expand file tree Collapse file tree 2 files changed +13
-16
lines changed Original file line number Diff line number Diff line change 1
1
# Docker image: Ansible
2
2
3
- [ ![ Docker Hub] ( https://img.shields.io/badge/docker-ansible-blue.svg )] ( https://hub.docker.com/r/chusiang/ansible/ )
3
+ [ ![ Docker Hub] ( https://img.shields.io/badge/docker-ansible-blue.svg )] ( https://hub.docker.com/r/chusiang/ansible/ ) [ ![ Docker Hub ] ( https://img.shields.io/badge/os-alpine-blue.svg )] ( https://hub.docker.com/_/alpine/ )
4
4
5
- A Docker image for run the [ Ansible] [ ansible_official ] v2.3.1 .
5
+ A Docker image for run the [ Ansible] [ ansible_official ] Engine on Alpine Linux .
6
6
7
7
[ ansible_official ] : https://www.ansible.com/
8
8
9
9
## Supported tags and respective ` Dockerfile ` links
10
10
11
- - ` alpine-3.6 ` , ` latest ` [ * (Dockerfile)* ] [ dockerfile_alpine-3.6 ]
12
-
13
- [ dockerfile_alpine-3.6 ] : alpine-3.6/Dockerfile
14
-
15
-
11
+ - ` 2.3 ` , ` latest ` [ * (Dockerfile)* ] ( v2.3/Dockerfile )
16
12
17
13
## Build image
18
14
@@ -25,14 +21,14 @@ A Docker image for run the [Ansible][ansible_official] v2.3.1.
25
21
1. Go to workspace.
26
22
27
23
```
28
- $ cd ansible.dockerfile/alpine-3.6
24
+ $ cd ansible.dockerfile/<REVERSION>
29
25
```
30
26
31
27
1. Bunild the image.
32
28
33
29
```
34
30
$ docker build -t ansible .
35
- $ docker build -t ansible:alpine-3.6 .
31
+ $ docker build -t ansible:<REVERSION> .
36
32
```
37
33
38
34
## Run container
@@ -65,7 +61,7 @@ Enjoy it !
65
61
66
62
## License
67
63
68
- MIT license from 2017.
64
+ MIT license from 2017-2018 .
69
65
70
66
## Author Information
71
67
Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ RUN apk add --no-cache build-base python py-pip python-dev \
13
13
RUN pip install -U pip cffi
14
14
15
15
# Setup the ansible.
16
- RUN pip install ansible
16
+ RUN pip install ' ansible>=2.3.0,<2.4.0'
17
17
18
18
# for disable localhost warning message.
19
19
RUN mkdir /etc/ansible && \
20
20
/bin/echo -e "[local]\n localhost ansible_connection=local" > /etc/ansible/hosts
21
21
22
- RUN echo "===> Install some package for Latticework Inc. ..." && \
22
+ RUN echo "===> Install some package ..." && \
23
23
apk add --update --no-cache \
24
24
bash \
25
25
bash-completion \
@@ -30,11 +30,12 @@ RUN echo "===> Install some package for Latticework Inc...." && \
30
30
sshpass \
31
31
vim
32
32
33
- RUN echo "===> Removing package cache..." && \
34
- apk del build-dependencies ;\
35
- rm -rf /var/cache/apk/*
33
+ RUN echo "===> Removing package cache ..." && \
34
+ apk del build-dependencies ; \
35
+ rm -rf /var/cache/apk/* && \
36
+ rm -rf ~/.cache/pip
36
37
37
- ONBUILD RUN echo "===> Updating TLS certificates..." && \
38
+ ONBUILD RUN echo "===> Updating TLS certificates ..." && \
38
39
apk add --update openssl ca-certificates
39
40
40
41
WORKDIR /srv
You can’t perform that action at this time.
0 commit comments