added homeassistant init container

This commit is contained in:
gyurix
2024-10-19 11:10:41 +02:00
parent efd9e5445e
commit 207dbd7f41
2 changed files with 17 additions and 6 deletions

View File

@@ -1,11 +1,11 @@
{ {
"main": { "main": {
"SERVICE_NAME": "homeassistant", "SERVICE_NAME": "homeassistant",
"DOMAIN": "DOMAIN" "DOMAIN": "HOMEASSISTANT_DOMAIN"
}, },
"containers": [ "containers": [
{ {
"IMAGE": "alpine:latest", "IMAGE": "registry.format.hu/homeassistant-init-container",
"UPDATE": "true", "UPDATE": "true",
"NAME": "homeassistant-init", "NAME": "homeassistant-init",
"NETWORK": "host", "NETWORK": "host",
@@ -15,13 +15,25 @@
"SOURCE": "USER_DATA", "SOURCE": "USER_DATA",
"DEST": "/etc/user/data", "DEST": "/etc/user/data",
"TYPE": "rw" "TYPE": "rw"
},
{
"SOURCE": "SYSTEM_DATA",
"DEST": "/etc/system/data/dns/host.local",
"TYPE": "rw"
}
],
"ENVS": [
{
"DOMAIN": "HOMEASSISTANT_DOMAIN"
},
{
"HOMEASSISTANT": "homeassistant"
} }
], ],
"EXTRA": "--rm", "EXTRA": "--rm",
"DEPEND": "null", "DEPEND": "null",
"START_ON_BOOT": "false", "START_ON_BOOT": "false",
"ENTRYPOINT": "sh -c", "CMD": "null",
"CMD": "mkdir -p /etc/user/data/homeassistant/config",
"PRE_START": "null", "PRE_START": "null",
"POST_START": "null" "POST_START": "null"
}, },
@@ -57,7 +69,6 @@
"CMD": "null", "CMD": "null",
"PRE_START": "null", "PRE_START": "null",
"POST_START": [ "POST_START": [
"firewall-homeassistant",
"domain-homeassistant" "domain-homeassistant"
] ]
} }

View File

@@ -10,7 +10,7 @@
{ {
"description": "Please add your homeassistant timezone:", "description": "Please add your homeassistant timezone:",
"key": "HOMEASSISTANT_TZ", "key": "HOMEASSISTANT_TZ",
"value": "", "value": "Europe/Budapest",
"required": "true" "required": "true"
} }
] ]