mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-26 17:32:22 +00:00
Add docker image for ansible lint to be used in CI
This commit is contained in:
parent
a23093851f
commit
b6c0f9758d
10
docker_ci/Dockerfile.ansiblelint
Normal file
10
docker_ci/Dockerfile.ansiblelint
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user