Many fixes about variabilisation of the telegraf config for docker

This commit is contained in:
2023-06-25 00:27:07 +02:00
parent 66971eafdb
commit 06cd7537ac
4 changed files with 53 additions and 22 deletions

View File

@@ -16,8 +16,9 @@ RUN python3 get-pip.py --prefix=/usr/local
# Install Python dependencies
RUN python3 -m pip install requests
RUN pip install unidecode
COPY entrypoint.sh /usr/local/py
COPY freebox-monit.py /usr/local/py
COPY telegraf.conf /etc/telegraf/telegraf.conf
RUN rm /entrypoint.sh
ADD --chmod=1755 entrypoint.sh /
ADD freebox-monit.py /usr/local/py/
ADD telegraf.conf /etc/telegraf/
ENTRYPOINT [/usr/local/py/entrypoint.sh]
ENTRYPOINT ["/entrypoint.sh"]