From b6c0f9758d86817552b25e3076c56f0e8e488744 Mon Sep 17 00:00:00 2001 From: Otthorn Date: Tue, 23 Feb 2021 23:02:29 +0100 Subject: [PATCH] Add docker image for ansible lint to be used in CI --- docker_ci/Dockerfile.ansiblelint | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docker_ci/Dockerfile.ansiblelint diff --git a/docker_ci/Dockerfile.ansiblelint b/docker_ci/Dockerfile.ansiblelint new file mode 100644 index 00000000..2ae87199 --- /dev/null +++ b/docker_ci/Dockerfile.ansiblelint @@ -0,0 +1,10 @@ +FROM python:3.9-alpine + +LABEL maintainer="otthorn@crans.org" +LABEL description="Alpine image with ansible-lint and yamllint \ +installed for linting purposes" + +RUN apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev cargo +RUN pip install --no-cache-dir "yamllint>=1.26.0,<2.0" +RUN pip install --no-cache-dir "ansible-lint==5.0.0" +RUN pip install --no-cache-dir "ansible>=2.10,<2.11"