jigasi: autoscaler sidecar support (#1738)

* jigasi: autoscaler sidecar support

* jigasi: remove local address
This commit is contained in:
Aaron van Meerten
2024-03-20 12:22:08 -05:00
committed by GitHub
parent 0953ca0853
commit d5df19d30f
6 changed files with 76 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
#!/usr/bin/with-contenv bash
if [[ -n "$AUTOSCALER_URL" ]] && [[ -f "/etc/jitsi/autoscaler-sidecar/config" ]]; then
DAEMON="/usr/bin/node /usr/share/jitsi-autoscaler-sidecar/app.js"
exec s6-setuidgid autoscaler-sidecar /bin/bash -c ". /etc/jitsi/autoscaler-sidecar/config && exec $DAEMON"
else
# if autoscaler-sidecar should not be started,
# prevent s6 from restarting this script again and again
s6-svc -O /var/run/s6/services/50-autoscaler-sidecar
fi