fix build args
All checks were successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/build-container Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
ci/woodpecker/tag/build-package Pipeline was successful
ci/woodpecker/tag/build-container Pipeline was successful
ci/woodpecker/tag/docs Pipeline was successful
ci/woodpecker/tag/notify Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-08-19 08:01:31 +02:00
parent 2760765b4a
commit b004c41596
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -11,6 +11,10 @@ ARG ANSIBLE_VERSION
ARG MOLECULE_VERSION ARG MOLECULE_VERSION
ARG ANSIBLE_LINT_VERSION ARG ANSIBLE_LINT_VERSION
ARG PIP_ROOT_USER_ACTION=ignore
ARG CARGO_NET_GIT_FETCH_WITH_CLI=true
ARG USER=root
# renovate: datasource=pypi depName=molecule # renovate: datasource=pypi depName=molecule
ENV MOLECULE_VERSION="${MOLECULE_VERSION:-24.6.1}" ENV MOLECULE_VERSION="${MOLECULE_VERSION:-24.6.1}"
# renovate: datasource=pypi depName=ansible # renovate: datasource=pypi depName=ansible
@ -26,18 +30,16 @@ COPY overlay/ /
RUN apk add --update --no-cache --virtual .build-deps build-base libffi-dev musl-dev openssl-dev python3-dev cargo && \ RUN apk add --update --no-cache --virtual .build-deps build-base libffi-dev musl-dev openssl-dev python3-dev cargo && \
apk add --update --no-cache git openssh-client && \ apk add --update --no-cache git openssh-client && \
apk upgrade --no-cache libexpat apk upgrade --no-cache libexpat
RUN export CARGO_NET_GIT_FETCH_WITH_CLI=true && \ RUN echo "Installing requirements ..." && \
export USER=root && \ pip install -qq --no-cache-dir --upgrade pip && \
echo "Installing requirements ..." && \ pip install -qq --no-cache-dir boto boto3 botocore apache-libcloud hcloud \
pip install -qq --root-user-action --no-cache-dir --upgrade pip && \
pip install -qq --root-user-action --no-cache-dir boto boto3 botocore apache-libcloud hcloud \
flaky passlib pytest pytest-testinfra && \ flaky passlib pytest pytest-testinfra && \
echo "Installing ansible 'v$ANSIBLE_VERSION' ..." && \ echo "Installing ansible 'v$ANSIBLE_VERSION' ..." && \
pip install -qq --root-user-action --no-cache-dir ansible=="$ANSIBLE_VERSION" && \ pip install -qq --no-cache-dir ansible=="$ANSIBLE_VERSION" && \
echo "Installing molecule 'v$MOLECULE_VERSION' ..." && \ echo "Installing molecule 'v$MOLECULE_VERSION' ..." && \
pip install -qq --root-user-action --no-cache-dir molecule=="$MOLECULE_VERSION" molecule-plugins[docker] molecule-hetznercloud && \ pip install -qq --no-cache-dir molecule=="$MOLECULE_VERSION" molecule-plugins[docker] molecule-hetznercloud && \
echo "Installing ansible-lint 'v$ANSIBLE_LINT_VERSION' ..." && \ echo "Installing ansible-lint 'v$ANSIBLE_LINT_VERSION' ..." && \
pip install -qq --root-user-action --no-cache-dir ansible-lint=="$ANSIBLE_LINT_VERSION" && \ pip install -qq --no-cache-dir ansible-lint=="$ANSIBLE_LINT_VERSION" && \
apk del .build-deps && \ apk del .build-deps && \
rm -rf /var/cache/apk/* && \ rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \ rm -rf /tmp/* && \