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

new

parent e476b4b8
No related branches found
No related tags found
4 merge requests!25Fix,!24Fix,!23Fix,!16New
Pipeline #2235 failed
FROM registry.cyberbrain.pw/docker/alpine:latest FROM registry.cyberbrain.pw/docker/alpine:latest AS builder
RUN apk --no-cache add \ ENV PATH="/opt/ansible/bin:$PATH"
sudo \ RUN apk --no-cache add python3 && \
python3 \
py3-pip \
openssl \
ca-certificates \
sshpass \
openssh-client \
rsync \
git && \
apk --no-cache add --virtual build-dependencies \ apk --no-cache add --virtual build-dependencies \
py3-pip \
musl-dev \
python3-dev \ python3-dev \
libffi-dev \ libffi-dev \
openssl-dev \ openssl-dev \
rust \ cargo \
build-base && \ && \
pip3 install --no-cache-dir --upgrade \ python3 -m venv /opt/ansible && \
pip3 install --ignore-installed --no-cache-dir --upgrade \
pip \ pip \
cffi \ setuptools \
wheel && \ wheel \
pip3 install --no-cache-dir \ && \
pip3 install --ignore-installed --no-cache-dir \
ansible \ ansible \
cryptography \ ansible-lint \
mitogen ansible-lint jmespath \ mitogen \
pywinrm && \ jmespath \
pywinrm \
&& \
apk del build-dependencies && \ apk del build-dependencies && \
rm -rf /var/cache/apk/* && \ rm -rf /var/cache/apk/*
mkdir -p /opt/ansible && \
FROM registry.cyberbrain.pw/docker/alpine:latest AS runtime
ENV PATH="/opt/ansible/bin:$PATH"
WORKDIR /srv/ansible
RUN apk --no-cache add \
python3 \
openssl \
ca-certificates \
sshpass \
openssh-client \
rsync \
git \
&& \
mkdir -p /etc/ansible && \ mkdir -p /etc/ansible && \
echo 'localhost' > /etc/ansible/hosts echo 'localhost' > /etc/ansible/hosts
WORKDIR /opt/ansible COPY --from=builder /opt/ansible /opt/ansible
CMD [ "ansible", "--version" ] CMD [ "ansible", "--version" ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment