Skip to content
Snippets Groups Projects
Commit 92e60ee4 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

Dockerfile

parent 51b7243f
No related branches found
No related tags found
1 merge request!25Fix
Pipeline #2617 passed
...@@ -2,10 +2,10 @@ FROM registry.cyberbrain.pw/docker/alpine:latest AS builder ...@@ -2,10 +2,10 @@ FROM registry.cyberbrain.pw/docker/alpine:latest AS builder
ARG ANSIBLE_VERSION ARG ANSIBLE_VERSION
ENV PATH="/opt/ansible/bin:$PATH" ENV PATH="/opt/ansible/bin:$PATH"
RUN apk --no-cache add python3 && \ RUN apk --no-cache add python3 && \
apk --no-cache add --virtual build-dependencies musl-dev python3-dev libffi-dev openssl-dev cargo && \ apk --no-cache add --virtual build-dependencies musl-dev python3-dev libffi-dev openssl-dev yaml-dev cargo && \
python3 -m venv /opt/ansible && \ python3 -m venv /opt/ansible && \
pip3 install --ignore-installed --no-cache-dir --upgrade pip setuptools wheel && \ pip3 install --ignore-installed --no-cache-dir --upgrade pip setuptools wheel && \
export ANSIBLE_PACKAGES="pyyaml ansible-lint mitogen jmespath pywinrm patch" && \ export ANSIBLE_PACKAGES="pyyaml ansible-lint mitogen jmespath pywinrm patch hvac" && \
( test -z $ANSIBLE_VERSION && pip install --ignore-installed --no-cache-dir ansible ${ANSIBLE_PACKAGES} || pip install --ignore-installed --no-cache-dir ansible\<=$ANSIBLE_VERSION ${ANSIBLE_PACKAGES} ) && \ ( test -z $ANSIBLE_VERSION && pip install --ignore-installed --no-cache-dir ansible ${ANSIBLE_PACKAGES} || pip install --ignore-installed --no-cache-dir ansible\<=$ANSIBLE_VERSION ${ANSIBLE_PACKAGES} ) && \
#apk del build-dependencies && \ #apk del build-dependencies && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment