Enable Jemalloc for docker Core (#33237)

This commit is contained in:
Pascal Vizeli 2020-03-25 10:14:15 +01:00 committed by GitHub
parent 44425a184e
commit 3ee05ad4bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View File

@ -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"

View File

@ -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

View File

@ -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