Skip to content

Commit

Permalink
Home Assistant: update config files
Browse files Browse the repository at this point in the history
  • Loading branch information
madejackson committed Nov 5, 2024
1 parent f175e28 commit adcd948
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
32 changes: 26 additions & 6 deletions servapps/HomeAssistant/cosmos-compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,20 @@
"type": "volume"
}
],
"post_install": [
"wget --directory-prefix \"/config/\" http://aseracorp.github.io/resiSTORE/servapps/HomeAssistant/artefacts/configuration.yaml",
"wget --directory-prefix \"/config/\" http://aseracorp.github.io/resiSTORE/servapps/HomeAssistant/artefacts/automations.yaml",
"wget --directory-prefix \"/config/\" http://aseracorp.github.io/resiSTORE/servapps/HomeAssistant/artefacts/scenes.yaml",
"wget --directory-prefix \"/config/\" http://aseracorp.github.io/resiSTORE/servapps/HomeAssistant/artefacts/scripts.yaml"
],
{if Context.useFileBrowser}
"depends_on": {
"{ServiceName}-Filebrowser": {
"condition": "service_healthy"
}
},
{/if}
{if Context.useCodeServer}
"depends_on": {
"{ServiceName}-Code": {
"condition": "service_healthy"
}
},
{/if}
"routes": [
{
"name": "{ServiceName}",
Expand Down Expand Up @@ -138,6 +146,12 @@
"type": "volume"
}
],
"post_install": [
"wget --directory-prefix \"/workspace/\" http://aseracorp.github.io/resiSTORE/servapps/HomeAssistant/artefacts/configuration.yaml",
"wget --directory-prefix \"/workspace/\" http://aseracorp.github.io/resiSTORE/servapps/HomeAssistant/artefacts/automations.yaml",
"wget --directory-prefix \"/workspace/\" http://aseracorp.github.io/resiSTORE/servapps/HomeAssistant/artefacts/scenes.yaml",
"wget --directory-prefix \"/workspace/\" http://aseracorp.github.io/resiSTORE/servapps/HomeAssistant/artefacts/scripts.yaml"
],
"routes": [
{
"name": "{ServiceName}-Code",
Expand Down Expand Up @@ -202,6 +216,12 @@
"type": "volume"
}
],
"post_install": [
"wget --directory-prefix \"/srv/\" http://aseracorp.github.io/resiSTORE/servapps/HomeAssistant/artefacts/configuration.yaml",
"wget --directory-prefix \"/srv/\" http://aseracorp.github.io/resiSTORE/servapps/HomeAssistant/artefacts/automations.yaml",
"wget --directory-prefix \"/srv/\" http://aseracorp.github.io/resiSTORE/servapps/HomeAssistant/artefacts/scenes.yaml",
"wget --directory-prefix \"/srv/\" http://aseracorp.github.io/resiSTORE/servapps/HomeAssistant/artefacts/scripts.yaml"
],
"routes": [
{
"name": "{ServiceName}-Filebrowser",
Expand Down
3 changes: 1 addition & 2 deletions servapps/Scada-LTS/cosmos-compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"command": "/usr/bin/wait-for-it --host=database --port=3306 --timeout=30 --strict -- /usr/local/tomcat/bin/catalina.sh run",
"depends_on": {
"{ServiceName}-db": {
"condition": "service_healthy",
"restart": "true"
"condition": "service_healthy"
}
},
"security_opt": [
Expand Down

0 comments on commit adcd948

Please sign in to comment.