diff options
author | Petr Ospalý <p.ospaly@partner.samsung.com> | 2018-12-19 12:47:27 +0100 |
---|---|---|
committer | Petr Ospalý <p.ospaly@partner.samsung.com> | 2018-12-19 12:51:36 +0100 |
commit | 6b44f821637c1edfc0b4a9a74fa8430a0c3a46ba (patch) | |
tree | e205acb0af8c95ed73ef5379634851bf4f0462c7 /ansible/docker/Dockerfile | |
parent | d21977bd82508b90c8bfda24111ac4a693256e70 (diff) |
Add ansible docker image
Dockerfile and script for building the image
Change-Id: If1e83095463ae209e284ba92898447a1205a2244
Issue-ID: OOM-1551
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
Diffstat (limited to 'ansible/docker/Dockerfile')
-rw-r--r-- | ansible/docker/Dockerfile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ansible/docker/Dockerfile b/ansible/docker/Dockerfile new file mode 100644 index 00000000..b0172709 --- /dev/null +++ b/ansible/docker/Dockerfile @@ -0,0 +1,34 @@ +FROM alpine:3.8 + +ARG ansible_version=2.6.3 +LABEL ansible_version=$ansible_version vendor=Samsung + +# Install Ansible build dependencies +RUN apk --no-cache update \ +&& apk --no-cache --update add --virtual build-dependencies \ + gcc \ + make \ + musl-dev \ + libffi-dev \ + openssl-dev \ + python3-dev \ +&& apk add --no-cache \ + python3 \ + py3-pip \ + openssh-client \ + openssl \ + py3-openssl \ + openssh \ + sshpass \ +&& pip3 install --no-cache-dir --upgrade pip \ +&& pip3 install --no-cache-dir \ + ansible==$ansible_version \ + jmespath \ +&& apk del build-dependencies && rm -rf /var/cache/apk/* + +ENV ANSIBLE_HOST_KEY_CHECKING false +ENV ANSIBLE_RETRY_FILES_ENABLED false + +WORKDIR /ansible + +ENTRYPOINT ["ansible-playbook"] |