# renovate: datasource=pypi packageName=ansible-core ARG ANSIBLE_VERSION=2.17.0 # renovate: datasource=pypi packageName=ansible-lint ARG ANSIBLELINT_VERSION=24.6.1 # renovate: datasource=pypi packageName=mitogen ARG MITOGEN_VERSION=0.3.11 # renovate: datasource=pypi packageName=yamllint ARG YAMLLINT_VERSION=1.33.0 # debian base FROM debian:12 ENV DEBIAN_FRONTEND noninteractive # prepare basic stuff RUN set -e && ln -sf bash /bin/sh RUN set -e \ && apt -y update \ && apt -y upgrade \ && apt -y install --no-install-recommends --no-install-suggests \ ca-certificates \ git \ nodejs \ ssh \ python3 \ python3-dev \ python3-pip \ wget # cleanup RUN set -e \ && apt -y autoremove \ && apt clean \ && rm -rf /var/lib/apt/lists/* # arguments ARG ANSIBLE_VERSION ARG ANSIBLELINT_VERSION ARG MITOGEN_VERSION ARG YAMLLINT_VERSION # install ansible + linters + mitogen RUN pip3 install --use-pep517 --ignore-installed --break-system-packages \ ansible-core==${ANSIBLE_VERSION} \ ansible-lint==${ANSIBLELINT_VERSION} \ mitogen==${MITOGEN_VERSION} \ yamllint==${YAMLLINT_VERSION} # install ansible collections RUN ansible-galaxy collection install ansible.posix RUN ansible-galaxy collection install community.docker RUN ansible-galaxy collection install community.general RUN ansible-galaxy collection install community.mysql