blob: db93bc0a3e2809f9462f40f3393f668d0411e106 [file] [log] [blame]
Bartek Grzybowski6605f1c2021-04-13 15:06:39 +02001FROM alpine:3.13.4
Petr Ospalý6b44f822018-12-19 12:47:27 +01002
Bartek Grzybowski6605f1c2021-04-13 15:06:39 +02003ARG ansible_version=3.2.0
Petr Ospalý6b44f822018-12-19 12:47:27 +01004LABEL 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 \
Petr Ospalý26ce9b02019-01-24 13:16:00 +010023&& pip3 install --upgrade pip \
24&& pip3 install \
Petr Ospalý6b44f822018-12-19 12:47:27 +010025 ansible==$ansible_version \
26 jmespath \
Michal Zeganb5cd82b2019-01-04 14:20:03 +010027 netaddr \
Petr Ospalýf604d492019-03-04 06:56:33 +010028 jsonpointer \
Petr Ospalý26ce9b02019-01-24 13:16:00 +010029&& apk del build-dependencies && rm -rf /var/cache/apk/* && rm -rf /root/.cache
Petr Ospalý6b44f822018-12-19 12:47:27 +010030
31ENV ANSIBLE_HOST_KEY_CHECKING false
32ENV ANSIBLE_RETRY_FILES_ENABLED false
33
34WORKDIR /ansible
35
36ENTRYPOINT ["ansible-playbook"]