Petr Ospalý | 6b44f82 | 2018-12-19 12:47:27 +0100 | [diff] [blame] | 1 | FROM alpine:3.8 |
| 2 | |
Petr Ospalý | 0fa3cf9 | 2019-03-04 16:23:23 +0100 | [diff] [blame] | 3 | ARG ansible_version=2.7.8 |
Petr Ospalý | 6b44f82 | 2018-12-19 12:47:27 +0100 | [diff] [blame] | 4 | LABEL ansible_version=$ansible_version vendor=Samsung |
| 5 | |
| 6 | # Install Ansible build dependencies |
| 7 | RUN 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ý | 26ce9b0 | 2019-01-24 13:16:00 +0100 | [diff] [blame] | 23 | && pip3 install --upgrade pip \ |
| 24 | && pip3 install \ |
Petr Ospalý | 6b44f82 | 2018-12-19 12:47:27 +0100 | [diff] [blame] | 25 | ansible==$ansible_version \ |
| 26 | jmespath \ |
Michal Zegan | b5cd82b | 2019-01-04 14:20:03 +0100 | [diff] [blame] | 27 | netaddr \ |
Petr Ospalý | f604d49 | 2019-03-04 06:56:33 +0100 | [diff] [blame] | 28 | jsonpointer \ |
Petr Ospalý | 26ce9b0 | 2019-01-24 13:16:00 +0100 | [diff] [blame] | 29 | && apk del build-dependencies && rm -rf /var/cache/apk/* && rm -rf /root/.cache |
Petr Ospalý | 6b44f82 | 2018-12-19 12:47:27 +0100 | [diff] [blame] | 30 | |
| 31 | ENV ANSIBLE_HOST_KEY_CHECKING false |
| 32 | ENV ANSIBLE_RETRY_FILES_ENABLED false |
| 33 | |
| 34 | WORKDIR /ansible |
| 35 | |
| 36 | ENTRYPOINT ["ansible-playbook"] |