Migrate to alpine variant
This has much newer ansible version
This commit is contained in:
parent
e22b2e7542
commit
278520d373
1 changed files with 4 additions and 13 deletions
17
Dockerfile
17
Dockerfile
|
@ -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 \
|
RUN true \
|
||||||
&& apt-get update \
|
&& apk update \
|
||||||
&& apt-get upgrade -y \
|
&& apk upgrade \
|
||||||
&& apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/* \
|
&& apk add ansible py3-influxdb py3-netaddr \
|
||||||
&& 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/* \
|
|
||||||
&& true
|
&& true
|
||||||
|
|
Reference in a new issue