Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Integrate dockerbuild (#33168)
* Integrate dockerbuild * cleanup
- Loading branch information
Showing
6 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -2,9 +2,15 @@ | ||
.git | ||
.github | ||
config | ||
docs | ||
|
||
# Development | ||
.devcontainer | ||
.vscode | ||
|
||
# Test related files | ||
.tox | ||
tests | ||
|
||
# Other virtualization methods | ||
venv | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,17 @@ | ||
ARG BUILD_FROM | ||
FROM ${BUILD_FROM}:6.1.0 | ||
|
||
WORKDIR /usr/src | ||
|
||
## Setup Home Assistant | ||
COPY . homeassistant/ | ||
RUN pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \ | ||
-r homeassistant/requirements_all.txt -c homeassistant/homeassistant/package_constraints.txt \ | ||
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \ | ||
-e ./homeassistant \ | ||
&& python3 -m compileall homeassistant/homeassistant | ||
|
||
# Home Assistant S6-Overlay | ||
COPY rootfs / | ||
|
||
WORKDIR /config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,14 @@ | ||
{ | ||
"image": "homeassistant/{arch}-homeassistant", | ||
"build_from": { | ||
"aarch64": "homeassistant/aarch64-homeassistant-base:7.0.1", | ||
"armhf": "homeassistant/armhf-homeassistant-base:7.0.1", | ||
"armv7": "homeassistant/armv7-homeassistant-base:7.0.1", | ||
"amd64": "homeassistant/amd64-homeassistant-base:7.0.1", | ||
"i386": "homeassistant/i386-homeassistant-base:7.0.1" | ||
}, | ||
"labels": { | ||
"io.hass.type": "core" | ||
}, | ||
"version_tag": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/execlineb -S0 | ||
# ============================================================================== | ||
# Take down the S6 supervision tree when Home Assistant fails | ||
# ============================================================================== | ||
s6-svscanctl -t /var/run/s6/services |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/with-contenv bashio | ||
# ============================================================================== | ||
# Start Home Assistant service | ||
# ============================================================================== | ||
cd /config || bashio::exit.nok "Can't find config folder!" | ||
|
||
exec python3 -m homeassistant --config /config |