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