From f434ae13fdae0febee2b710e090211f37a0b0111 Mon Sep 17 00:00:00 2001 From: timo Date: Fri, 26 Jan 2024 20:22:49 +0100 Subject: [PATCH] =?UTF-8?q?Image=20telegraf=201.29.2=20+=20d=C3=A9pendance?= =?UTF-8?q?=20pip3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9e1e727..301919a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM telegraf:1.27.1 +FROM telegraf:1.29.2 # Install required packages RUN apt-get update \ @@ -10,12 +10,15 @@ RUN apt-get update \ gnupg-agent \ software-properties-common \ python3-distutils \ - && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ - && python3 get-pip.py --prefix=/usr/local \ - && python3 -m pip install requests \ - && pip install unidecode \ + python3-pip \ + python3-full + +# Installation module necessaire pour le script python +RUN pip3 install requests --break-system-packages \ + && pip3 install unidecode --break-system-packages \ && rm /entrypoint.sh + ADD --chmod=1755 entrypoint.sh / ADD freebox-monit.py /usr/local/py/ ADD telegraf.conf /etc/telegraf/