From 207dbd7f4177d9e70a5e56e3d10bb0138034e416 Mon Sep 17 00:00:00 2001 From: gyurix Date: Sat, 19 Oct 2024 11:10:41 +0200 Subject: [PATCH] added homeassistant init container --- homeassistant/service-homeassistant.json | 21 ++++++++++++++++----- homeassistant/template.json | 2 +- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/homeassistant/service-homeassistant.json b/homeassistant/service-homeassistant.json index b536bf5..500a0b4 100644 --- a/homeassistant/service-homeassistant.json +++ b/homeassistant/service-homeassistant.json @@ -1,11 +1,11 @@ { "main": { "SERVICE_NAME": "homeassistant", - "DOMAIN": "DOMAIN" + "DOMAIN": "HOMEASSISTANT_DOMAIN" }, "containers": [ { - "IMAGE": "alpine:latest", + "IMAGE": "registry.format.hu/homeassistant-init-container", "UPDATE": "true", "NAME": "homeassistant-init", "NETWORK": "host", @@ -15,13 +15,25 @@ "SOURCE": "USER_DATA", "DEST": "/etc/user/data", "TYPE": "rw" + }, + { + "SOURCE": "SYSTEM_DATA", + "DEST": "/etc/system/data/dns/host.local", + "TYPE": "rw" + } + ], + "ENVS": [ + { + "DOMAIN": "HOMEASSISTANT_DOMAIN" + }, + { + "HOMEASSISTANT": "homeassistant" } ], "EXTRA": "--rm", "DEPEND": "null", "START_ON_BOOT": "false", - "ENTRYPOINT": "sh -c", - "CMD": "mkdir -p /etc/user/data/homeassistant/config", + "CMD": "null", "PRE_START": "null", "POST_START": "null" }, @@ -57,7 +69,6 @@ "CMD": "null", "PRE_START": "null", "POST_START": [ - "firewall-homeassistant", "domain-homeassistant" ] } diff --git a/homeassistant/template.json b/homeassistant/template.json index 0b438cf..ca86996 100644 --- a/homeassistant/template.json +++ b/homeassistant/template.json @@ -10,7 +10,7 @@ { "description": "Please add your homeassistant timezone:", "key": "HOMEASSISTANT_TZ", - "value": "", + "value": "Europe/Budapest", "required": "true" } ]