1
0
Fork 0

Migrate to alpine variant

This has much newer ansible version
This commit is contained in:
Saibotk 2024-01-25 23:33:55 +00:00
parent e22b2e7542
commit 278520d373

View file

@ -1,16 +1,7 @@
FROM docker.io/gitlab/gitlab-runner:v16.8.0
FROM docker.io/gitlab/gitlab-runner:alpine-v16.8.0
RUN true \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/* \
&& true
RUN true \
&& apt-get update \
&& apt-get install -y gpg software-properties-common \
&& add-apt-repository ppa:ansible/ansible \
&& apt-get update \
&& apt-get install -y ansible python3-requests python3-influxdb python3-netaddr \
&& apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/* \
&& apk update \
&& apk upgrade \
&& apk add ansible py3-influxdb py3-netaddr \
&& true