From 0526a5191af34efcfeef59627309c66ccc81db5f Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 20 Mar 2023 14:05:35 +0100 Subject: [PATCH 1/2] Create Dockerfile --- tools/rpi/Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tools/rpi/Dockerfile diff --git a/tools/rpi/Dockerfile b/tools/rpi/Dockerfile new file mode 100644 index 00000000..8fa89661 --- /dev/null +++ b/tools/rpi/Dockerfile @@ -0,0 +1,15 @@ +############################ +# build executable binary +############################ + +FROM python:slim-bullseye + +COPY . /hoymiles +WORKDIR /hoymiles + +RUN python3 -m pip install pyrf24 +RUN python3 -m pip list #watch for RF24 module - if its there its installed + +RUN pip install crcmod pyyaml paho-mqtt SunTimes + +CMD python3 -um hoymiles --log-transactions --verbose --config /etc/ahoy.yml From 7d2efd794393e2a3e19963bed7a6c15634962c9b Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 23 Mar 2023 14:06:25 +0100 Subject: [PATCH 2/2] Update Dockerfile added Influx Client Pip --- tools/rpi/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/rpi/Dockerfile b/tools/rpi/Dockerfile index 8fa89661..1a62b01b 100644 --- a/tools/rpi/Dockerfile +++ b/tools/rpi/Dockerfile @@ -7,8 +7,8 @@ FROM python:slim-bullseye COPY . /hoymiles WORKDIR /hoymiles -RUN python3 -m pip install pyrf24 -RUN python3 -m pip list #watch for RF24 module - if its there its installed +RUN python3 -m pip install pyrf24 influxdb_client && \ +python3 -m pip list #watch for RF24 module - if its there its installed RUN pip install crcmod pyyaml paho-mqtt SunTimes