blob: b0172709dc73076381a8e0643806d39090a1b934 [file] [log] [blame]
Petr Ospalý6b44f822018-12-19 12:47:27 +01001FROM alpine:3.8
2
3ARG ansible_version=2.6.3
4LABEL ansible_version=$ansible_version vendor=Samsung
5
6# Install Ansible build dependencies
7RUN apk --no-cache update \
8&& apk --no-cache --update add --virtual build-dependencies \
9 gcc \
10 make \
11 musl-dev \
12 libffi-dev \
13 openssl-dev \
14 python3-dev \
15&& apk add --no-cache \
16 python3 \
17 py3-pip \
18 openssh-client \
19 openssl \
20 py3-openssl \
21 openssh \
22 sshpass \
23&& pip3 install --no-cache-dir --upgrade pip \
24&& pip3 install --no-cache-dir \
25 ansible==$ansible_version \
26 jmespath \
27&& apk del build-dependencies && rm -rf /var/cache/apk/*
28
29ENV ANSIBLE_HOST_KEY_CHECKING false
30ENV ANSIBLE_RETRY_FILES_ENABLED false
31
32WORKDIR /ansible
33
34ENTRYPOINT ["ansible-playbook"]