Skip to content

Commit

Permalink
fix: update Dockerfile to specify full path for dsmr_datalogger_api_c…
Browse files Browse the repository at this point in the history
…lient.py and add debugging output in run script
  • Loading branch information
sanderdw committed Jan 2, 2025
1 parent c503b39 commit a42bd56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dsmr_datalogger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV LANG=C.UTF-8
# Copy data for add-on
COPY config.json /app/ha_addon_version.json
COPY rootfs /
COPY dsmr_datalogger_api_client.py /run/s6/legacy-services/example/
COPY dsmr_datalogger_api_client.py /run/s6/legacy-services/example/dsmr_datalogger_api_client.py
COPY requirements.txt /
RUN mkdir -p /etc/dsmr_logs
RUN pip install --no-cache-dir -r requirements.txt
Expand Down
4 changes: 4 additions & 0 deletions dsmr_datalogger/rootfs/etc/services.d/example/run
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ function _hass {
_hass

## Run your program
_info "EXEC"
pwd
python -V
python /run/s6/legacy-services/example/dsmr_datalogger_api_client.py
_info "EXEC"

0 comments on commit a42bd56

Please sign in to comment.