mirror of https://github.com/home-assistant/core
Enable Jemalloc for docker Core (#33237)
This commit is contained in:
parent
44425a184e
commit
3ee05ad4bb
10
build.json
10
build.json
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"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"
|
||||
"aarch64": "homeassistant/aarch64-homeassistant-base:7.1.0",
|
||||
"armhf": "homeassistant/armhf-homeassistant-base:7.1.0",
|
||||
"armv7": "homeassistant/armv7-homeassistant-base:7.1.0",
|
||||
"amd64": "homeassistant/amd64-homeassistant-base:7.1.0",
|
||||
"i386": "homeassistant/i386-homeassistant-base:7.1.0"
|
||||
},
|
||||
"labels": {
|
||||
"io.hass.type": "core"
|
||||
|
|
|
@ -2,4 +2,6 @@
|
|||
# ==============================================================================
|
||||
# Take down the S6 supervision tree when Home Assistant fails
|
||||
# ==============================================================================
|
||||
if { s6-test ${1} -ne 100 }
|
||||
|
||||
s6-svscanctl -t /var/run/s6/services
|
|
@ -4,4 +4,7 @@
|
|||
# ==============================================================================
|
||||
cd /config || bashio::exit.nok "Can't find config folder!"
|
||||
|
||||
# Enable Jemalloc for Home Assistant Core
|
||||
export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
|
||||
|
||||
exec python3 -m homeassistant --config /config
|
||||
|
|
Loading…
Reference in New Issue