mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
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",
|
"image": "homeassistant/{arch}-homeassistant",
|
||||||
"build_from": {
|
"build_from": {
|
||||||
"aarch64": "homeassistant/aarch64-homeassistant-base:7.0.1",
|
"aarch64": "homeassistant/aarch64-homeassistant-base:7.1.0",
|
||||||
"armhf": "homeassistant/armhf-homeassistant-base:7.0.1",
|
"armhf": "homeassistant/armhf-homeassistant-base:7.1.0",
|
||||||
"armv7": "homeassistant/armv7-homeassistant-base:7.0.1",
|
"armv7": "homeassistant/armv7-homeassistant-base:7.1.0",
|
||||||
"amd64": "homeassistant/amd64-homeassistant-base:7.0.1",
|
"amd64": "homeassistant/amd64-homeassistant-base:7.1.0",
|
||||||
"i386": "homeassistant/i386-homeassistant-base:7.0.1"
|
"i386": "homeassistant/i386-homeassistant-base:7.1.0"
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.hass.type": "core"
|
"io.hass.type": "core"
|
||||||
|
@ -2,4 +2,6 @@
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Take down the S6 supervision tree when Home Assistant fails
|
# Take down the S6 supervision tree when Home Assistant fails
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
if { s6-test ${1} -ne 100 }
|
||||||
|
|
||||||
s6-svscanctl -t /var/run/s6/services
|
s6-svscanctl -t /var/run/s6/services
|
@ -4,4 +4,7 @@
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
cd /config || bashio::exit.nok "Can't find config folder!"
|
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
|
exec python3 -m homeassistant --config /config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user