ansible-deployment-container/Dockerfile.linux.amd64
Simon Cornet 87fd978c39
All checks were successful
Build and Publish / build (push) Successful in 5m35s
[ci] feat: added nodesj for gitea actions compatibility
2024-07-04 11:27:27 +02:00

51 lines
1.3 KiB
Docker

# 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=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 YAMLLINT_VERSION
# install ansible + linters
RUN pip3 install --use-pep517 --ignore-installed --break-system-packages \
ansible-core==${ANSIBLE_VERSION} \
ansible-lint==${ANSIBLELINT_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