Skip to content

Commit

Permalink
Patch JVB autoscaler sidecar config to not use s6-overlay
Browse files Browse the repository at this point in the history
Signed-off-by: Rhea Danzey <[email protected]>
  • Loading branch information
Arkaniad committed Nov 27, 2023
1 parent e63d85f commit 80d5b12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions jvb/rootfs/etc/supervisor/conf.d/20_autoscaler_sidecar.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[program:jvb-autoscaler-sidecar]
command=/bin/bash -c "/usr/bin/service_wrapper_autoscaler_sidecar"
autorestart=unexpected
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/with-contenv bash
#!/bin/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"
/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
supervisorctl stop jvb-autoscaler-sidecar
fi

0 comments on commit 80d5b12

Please sign in to comment.