Commit 3d31143c authored by Christoph Weyer's avatar Christoph Weyer
Browse files

Remove tabs and reformat file

parent 26500860
......@@ -3,28 +3,29 @@ FROM alpine:3.13.10 as builder
# ignore warning about pining version
# hadolint ignore=DL3018
RUN set -eux \
&& apk add --no-cache \
bc \
cargo \
gcc \
libffi-dev \
musl-dev \
openssl-dev \
py3-pip \
py3-wheel \
python3 \
python3-dev \
rust
&& apk add --no-cache \
bc \
cargo \
gcc \
libffi-dev \
musl-dev \
openssl-dev \
py3-pip \
py3-wheel \
python3 \
python3-dev \
rust
COPY requirements.txt /
# hadolint ignore=DL4006
RUN set -eux \
&& pip3 install --no-cache-dir -r /requirements.txt \
&& ansible-lint --version | head -1 | grep -E 'ansible-lint[[:space:]]+[0-9]+' \
&& rm -f /requirements.txt \
&& find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf \
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
&& pip3 install \
--no-cache-dir --no-warn-script-location -r /requirements.txt \
&& ansible-lint --version | head -1 | grep -E 'ansible-lint[[:space:]]+[0-9]+' \
&& rm -f /requirements.txt \
&& find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf \
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
# hadolint ignore=DL3059
......@@ -45,21 +46,21 @@ LABEL org.opencontainers.image.authors="Christoph Weyer <c.weyer@tuhh.de>"
# ignore warning about pining version
# hadolint ignore=DL3018,DL4006
RUN set -eux \
&& apk add --no-cache \
bash \
git \
python3 \
&& ln -sf ansible /usr/bin/ansible-config \
&& ln -sf ansible /usr/bin/ansible-console \
&& ln -sf ansible /usr/bin/ansible-doc \
&& ln -sf ansible /usr/bin/ansible-galaxy \
&& ln -sf ansible /usr/bin/ansible-inventory \
&& ln -sf ansible /usr/bin/ansible-playbook \
&& ln -sf ansible /usr/bin/ansible-pull \
&& ln -sf ansible /usr/bin/ansible-test \
&& ln -sf ansible /usr/bin/ansible-vault \
&& find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf \
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
&& apk add --no-cache \
bash \
git \
python3 \
&& ln -sf ansible /usr/bin/ansible-config \
&& ln -sf ansible /usr/bin/ansible-console \
&& ln -sf ansible /usr/bin/ansible-doc \
&& ln -sf ansible /usr/bin/ansible-galaxy \
&& ln -sf ansible /usr/bin/ansible-inventory \
&& ln -sf ansible /usr/bin/ansible-playbook \
&& ln -sf ansible /usr/bin/ansible-pull \
&& ln -sf ansible /usr/bin/ansible-test \
&& ln -sf ansible /usr/bin/ansible-vault \
&& find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf \
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
COPY --from=builder /usr/lib/python3.8/site-packages/ /usr/lib/python3.8/site-packages/
COPY --from=builder /usr/bin/ansible-lint /usr/bin/ansible-lint
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment