Files
eleith 5346483a99 initial cadvisor add-on
1. fork cadvisor from caraar12345
2. remove s6 overlay to use host_pid option
2025-05-20 11:24:01 -07:00

20 lines
740 B
Plaintext

#!/usr/bin/env bashio
# ==============================================================================
# Home Assistant Community Add-on: Cadvisor
# Run the add-on
# ==============================================================================
#
# WHAT IS THIS FILE?!
#
# This add-on runs in the host PID namespace, therefore it cannot
# use the regular S6-Overlay; hence this add-on uses a "old school" script
# to run; with a couple of "hacks" to make it work.
# ==============================================================================
# Start
echo "[Custom Init] S6 Overlay /init bypassed due to host_pid: true."
echo "[Custom Init] Executing CMD: $@"
# This will execute whatever you've set as CMD in your Dockerfile
exec "$@"