cantabile_edge, cantabile_modbus, cantabile_eebus 0.1.400: full source

This commit is contained in:
Setti Solutions S.R.L committed 2026-10-30 08:26:45 +02:00
1 parent 343331d234
commit d5fbcacaa4
176 files changed
+32511 -19

No files matched your search

+15 -13
View File
@@ -1,20 +1,22 @@
# Copyright © 2026 Setti Solutions S.R.L, www.setti.md. All rights reserved.
# The add-on's image: the Edge Agent image of the same commit (edge/build.sh)
# with addon-run in front, and the platform it belongs to (the devices URL,
# the command and bundle certificates), as a Hub build bakes them in.
# Built by ha-addon/build.sh, one image per arch; the Supervisor pulls it.
ARG EDGE_IMAGE
# The add-on's image: the Edge Agent image (src/edge) with addon-run in
# front, Cantabile's device profiles (src/profiles; the agent proposes a
# mapping from them, propose.py), and the platform it belongs to: the devices
# URL and the command and bundle certificates (cantabile_edge/platform/,
# README.md there). Built from the repository's root:
# docker build -t cantabile-edge:local src/edge
# docker build -f cantabile_edge/Dockerfile --build-arg EDGE_IMAGE=cantabile-edge:local \
# --build-arg VERSION=<v> -t cantabile-ha-edge-amd64:<v> .
ARG EDGE_IMAGE=cantabile-edge:local
FROM ${EDGE_IMAGE}
ARG VERSION ARCH REVISION
ARG VERSION ARCH=amd64 REVISION
LABEL io.hass.version="${VERSION}" io.hass.type="addon" io.hass.arch="${ARCH}" \
org.opencontainers.image.revision="${REVISION}"
# bundles.pem is optional (no bundle key: the agent plans with its flat price);
# devices-ca.pem too (the direct path, docs/direct-link.md).
COPY addon.env commands.pem bundles.pem* devices-ca.pem* /etc/cantabile/
COPY addon-run /usr/local/bin/addon-run
# Cantabile's device profiles (hub/profiles, copied in by build.sh): the
# agent proposes a mapping from them (propose.py).
COPY profiles/ /usr/share/cantabile/profiles/
# addon.env and commands.pem are needed at run time; bundles.pem and
# devices-ca.pem are optional.
COPY cantabile_edge/platform/ /etc/cantabile/
COPY cantabile_edge/addon-run /usr/local/bin/addon-run
COPY src/profiles/*.json /usr/share/cantabile/profiles/
# addon-run starts as root (it reads Home Assistant's instance id) and runs
# the agent as uid 10001.
USER root