File tree 6 files changed +52
-5
lines changed
rootfs/etc/services.d/home-assistant
6 files changed +52
-5
lines changed Original file line number Diff line number Diff line change 2
2
.git
3
3
.github
4
4
config
5
+ docs
6
+
7
+ # Development
8
+ .devcontainer
9
+ .vscode
5
10
6
11
# Test related files
7
12
.tox
13
+ tests
8
14
9
15
# Other virtualization methods
10
16
venv
Original file line number Diff line number Diff line change
1
+ ARG BUILD_FROM
2
+ FROM ${BUILD_FROM}:6.1.0
3
+
4
+ WORKDIR /usr/src
5
+
6
+ # # Setup Home Assistant
7
+ COPY . homeassistant/
8
+ RUN pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
9
+ -r homeassistant/requirements_all.txt -c homeassistant/homeassistant/package_constraints.txt \
10
+ && pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
11
+ -e ./homeassistant \
12
+ && python3 -m compileall homeassistant/homeassistant
13
+
14
+ # Home Assistant S6-Overlay
15
+ COPY rootfs /
16
+
17
+ WORKDIR /config
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ schedules:
14
14
always : true
15
15
variables :
16
16
- name : versionBuilder
17
- value : ' 6.9 '
17
+ value : ' 7.2.0 '
18
18
- group : docker
19
19
- group : github
20
20
- group : twine
@@ -108,11 +108,9 @@ stages:
108
108
docker run --rm --privileged \
109
109
-v ~/.docker:/root/.docker:rw \
110
110
-v /run/docker.sock:/run/docker.sock:rw \
111
- -v $(pwd):/homeassistant :ro \
111
+ -v $(pwd):/data :ro \
112
112
homeassistant/amd64-builder:$(versionBuilder) \
113
- --homeassistant $(homeassistantRelease) "--$(buildArch)" \
114
- -r https://github.com/home-assistant/hassio-homeassistant \
115
- -t generic --docker-hub homeassistant
113
+ --generic $(homeassistantRelease) "--$(buildArch)" -t /data \
116
114
117
115
docker run --rm --privileged \
118
116
-v ~/.docker:/root/.docker \
Original file line number Diff line number Diff line change
1
+ {
2
+ "image" : " homeassistant/{arch}-homeassistant" ,
3
+ "build_from" : {
4
+ "aarch64" : " homeassistant/aarch64-homeassistant-base:7.0.1" ,
5
+ "armhf" : " homeassistant/armhf-homeassistant-base:7.0.1" ,
6
+ "armv7" : " homeassistant/armv7-homeassistant-base:7.0.1" ,
7
+ "amd64" : " homeassistant/amd64-homeassistant-base:7.0.1" ,
8
+ "i386" : " homeassistant/i386-homeassistant-base:7.0.1"
9
+ },
10
+ "labels" : {
11
+ "io.hass.type" : " core"
12
+ },
13
+ "version_tag" : true
14
+ }
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/execlineb -S0
2
+ # ==============================================================================
3
+ # Take down the S6 supervision tree when Home Assistant fails
4
+ # ==============================================================================
5
+ s6-svscanctl -t /var/run/s6/services
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/with-contenv bashio
2
+ # ==============================================================================
3
+ # Start Home Assistant service
4
+ # ==============================================================================
5
+ cd /config || bashio::exit.nok "Can't find config folder!"
6
+
7
+ exec python3 -m homeassistant --config /config
You can’t perform that action at this time.
0 commit comments