From 080f50d22c63ad28f58ff822a772fbac6b543251 Mon Sep 17 00:00:00 2001 From: Saad Ali Date: Wed, 14 Aug 2024 19:00:58 +0500 Subject: [PATCH] Upgrade Telegraf to 1.31.3 and added deye-controller --- Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index dcd4ab4..ff51d37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,10 @@ -FROM telegraf:1.31.1 +FROM telegraf:1.31.3 ARG DEBIAN_FRONTEND noninteractive +ENV VIRTUAL_ENV="/opt/deye-controller" +ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" + RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends lsb-release; \ @@ -12,6 +15,10 @@ RUN set -eux; \ } | tee /etc/apt/sources.list; \ apt-get update; \ apt-get -y dist-upgrade; \ - apt-get install -y --no-install-recommends iputils-ping zfsutils-linux smartmontools nvme-cli; \ + apt-get install -y --no-install-recommends iputils-ping zfsutils-linux smartmontools nvme-cli jq python-is-python3 python3-pip python3-venv; \ apt-get clean all; \ rm -r /var/lib/apt/lists /var/cache/apt/archives + +RUN set -eux; \ + python -m venv "${VIRTUAL_ENV}"; \ + pip install deye-controller