bbd5323de4
Ansible reports: ``` Failed to import the required Python library (requests) on container's Python /usr/bin/python2. ``` This is due to missing libraries obviously as well as the fact that ansible runs in python2 not python 3 on debian. Therefore this patch rewrites the added lbiraries for influxdb and fixes the error message.
15 lines
494 B
Docker
15 lines
494 B
Docker
FROM docker.io/gitlab/gitlab-runner:v13.1.1
|
|
|
|
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 software-properties-common \
|
|
&& apt-add-repository --yes --update ppa:ansible/ansible \
|
|
&& apt-get install -y ansible python-requests python-influxdb \
|
|
&& apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/* \
|
|
&& true
|