forked from nicobot/docker-ansible-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (32 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
40 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM alpine
RUN echo "http://dl-cdn.alpinelinux.org/alpine/latest-stable/community" >> /etc/apk/repositories; echo "http://dl-cdn.alpinelinux.org/alpine/latest-stable/main" >> /etc/apk/repositories
# Bash terminal
RUN apk add --update bash && rm -rf /var/cache/apk/*
RUN \
apk --update add \
python3 \
python3-dev \
py-pip \
build-base \
ansible \
rsync \
openssh \
&& pip install virtualenv \
&& pip install jmespath \
&& rm -rf /var/cache/apk/*
# Ansible config storage
RUN mkdir /etc/ansible/ /ansible
RUN mkdir -p /ansible/files
RUN mkdir -p /ansible/playbooks
WORKDIR /ansible/playbooks
ENV ANSIBLE_GATHERING smart
# Avoid Host hey checking: http://docs.ansible.com/ansible/intro_getting_started.html#host-key-checking: Not best to do
ENV ANSIBLE_HOST_KEY_CHECKING false
ENV ANSIBLE_RETRY_FILES_ENABLED false
# This is set in configuration
# ENV ANSIBLE_ROLES_PATH /ansible/playbooks/roles
ENV ANSIBLE_SSH_PIPELINING True
ENV PATH /ansible/bin:$PATH
ENV PYTHONPATH /ansible/lib
#ENTRYPOINT ["ansible-playbook"]
CMD tail -f /dev/null