migrate to good dind base

master
Seth Doty 2022-10-10 23:10:45 -05:00
parent ddf090f725
commit a15863f422
Signed by: sethmdoty
SSH Key Fingerprint: SHA256:wvNCGqFBjqW46I4sMfN/9DwLkuEbElw7MONaxwHTVm8
1 changed files with 13 additions and 14 deletions

View File

@ -1,13 +1,12 @@
FROM docker:dind
LABEL maintainer "Florian Dambrine <android.florian@gmail.com>"
FROM codefresh/dind
ARG ANSIBLE_PIP_VERSION
ARG MOLECULE_PIP_VERSION
ARG MITOGEN_VERSION
ENV ANSIBLE_PIP_VERSION=${ANSIBLE_PIP_VERSION:-2.6.3}
ENV MOLECULE_PIP_VERSION=${MOLECULE_PIP_VERSION:-2.17}
ENV MITOGEN_VERSION=${MITOGEN_VERSION:-0.2.3}
ENV ANSIBLE_PIP_VERSION=${ANSIBLE_PIP_VERSION:-6.4.0}
ENV MOLECULE_PIP_VERSION=${MOLECULE_PIP_VERSION:-4.0.1}
ENV MITOGEN_VERSION=${MITOGEN_VERSION:-0.3.3}
ENV PACKAGES="\
gcc \
@ -17,9 +16,9 @@ ENV PACKAGES="\
libffi-dev \
musl-dev \
openssl-dev \
py-pip \
python \
python-dev \
py3-pip \
python3 \
python3-dev \
linux-headers \
sudo \
git \
@ -43,7 +42,7 @@ RUN \
&& apk add --update --no-cache ${PACKAGES} \
&& rm -rf /var/cache/apk/* \
&& pip install -U pip --no-cache-dir \
&& pip install --no-cache-dir ${PIP_PACKAGES} \
&& pip install --ignore-installed --no-cache-dir ${PIP_PACKAGES} \
&& rm -rf /root/.cache
ENV ANSIBLE_FORCE_COLOR=1
@ -52,13 +51,13 @@ ENV SHELL /bin/bash
COPY entrypoint.sh /entrypoint.sh
# Add any custom modules if any
COPY library /etc/ansible/library
#COPY library /etc/ansible/library
# Copy Extra ansible-lint rules
RUN mkdir -p /opt \
&& git clone https://github.com/Lowess/ansible-lint-rules.git /opt/gumgum-lint-rules
## Copy Extra ansible-lint rules
#RUN mkdir -p /opt \
# && git clone https://github.com/Lowess/ansible-lint-rules.git /opt/gumgum-lint-rules
# Install Mitogen
## Install Mitogen
RUN wget -qO- https://github.com/dw/mitogen/archive/v${MITOGEN_VERSION}.tar.gz | tar xvz -C /opt \
&& ln -s /opt/mitogen-${MITOGEN_VERSION} /opt/mitogen