jibri: add check for /dev/shm size

If the container was staryed without a /dev/shm of at least 2GB
(defaults to 6MB in Docker) Chrome will behave erratically or crash.

Catch this with a tiny binary and make the container fail to start.

Ref: https://github.com/jitsi/docker-jitsi-meet/issues/1653
This commit is contained in:
Saúl Ibarra Corretgé
2023-11-30 22:51:13 +01:00
parent dbffba1d6c
commit e6a0c0461e
2 changed files with 13 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
#!/usr/bin/with-contenv bash
# Check if /dev/shm is large enough (2GB at least)
if ! shm-check; then
echo "/dev/shm must be at least 2GB in size"
exit 1
fi
if [[ -z $JIBRI_RECORDER_PASSWORD || -z $JIBRI_XMPP_PASSWORD ]]; then
echo 'FATAL ERROR: Jibri recorder password and auth password must be set'
exit 1