HomeCore Controller v0.1.7 staged from HomeCore Admin
This commit is contained in:
parent
e85f082d5c
commit
a0912bff7d
@ -1,5 +1,12 @@
|
|||||||
# HomeCore Controller Changelog
|
# HomeCore Controller Changelog
|
||||||
|
|
||||||
|
## 0.1.7
|
||||||
|
|
||||||
|
- Fixes Home Assistant Supervisor token inheritance by starting HomeCore through `with-contenv`.
|
||||||
|
- Adds startup logging to confirm whether `SUPERVISOR_TOKEN` is available.
|
||||||
|
- Preserves manual per-controller update control; no automatic rollout is enabled.
|
||||||
|
- Bootstrap release required because 0.1.5 cannot call the Supervisor update API without the token.
|
||||||
|
|
||||||
## 0.1.6
|
## 0.1.6
|
||||||
|
|
||||||
- First HomeCore Admin manual per-controller deployment validation release.
|
- First HomeCore Admin manual per-controller deployment validation release.
|
||||||
|
|||||||
@ -7,5 +7,7 @@ ENV PATH="/opt/venv/bin:$PATH"
|
|||||||
COPY requirements.txt /tmp/requirements.txt
|
COPY requirements.txt /tmp/requirements.txt
|
||||||
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
||||||
COPY app /opt/homecore
|
COPY app /opt/homecore
|
||||||
|
COPY run.sh /run.sh
|
||||||
|
RUN chmod a+x /run.sh
|
||||||
WORKDIR /opt/homecore
|
WORKDIR /opt/homecore
|
||||||
CMD ["python", "main.py"]
|
CMD ["/run.sh"]
|
||||||
|
|||||||
@ -16,7 +16,13 @@ from cryptography.hazmat.primitives import serialization
|
|||||||
import uvicorn
|
import uvicorn
|
||||||
from updater import start_update_manager
|
from updater import start_update_manager
|
||||||
|
|
||||||
VERSION = "0.1.6"
|
VERSION = "0.1.7"
|
||||||
|
|
||||||
|
print(
|
||||||
|
"HOMECORE SUPERVISOR: token "
|
||||||
|
+ ("available" if os.getenv("SUPERVISOR_TOKEN") else "missing"),
|
||||||
|
flush=True,
|
||||||
|
)
|
||||||
|
|
||||||
DATA = Path("/config")
|
DATA = Path("/config")
|
||||||
DATA.mkdir(parents=True, exist_ok=True)
|
DATA.mkdir(parents=True, exist_ok=True)
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: HomeCore Controller
|
name: HomeCore Controller
|
||||||
version: "0.1.6"
|
version: "0.1.7"
|
||||||
slug: homecore_controller
|
slug: homecore_controller
|
||||||
description: HomeCore local controller agent for Home Assistant Green.
|
description: HomeCore local controller agent for Home Assistant Green.
|
||||||
url: https://homecore.home-core.co.uk
|
url: https://homecore.home-core.co.uk
|
||||||
|
|||||||
3
homecore_controller/run.sh
Executable file
3
homecore_controller/run.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/with-contenv sh
|
||||||
|
set -eu
|
||||||
|
exec python /opt/homecore/main.py
|
||||||
Loading…
Reference in New Issue
Block a user