fsesl-akka integration

This commit is contained in:
2024-10-02 16:08:22 +02:00
parent adad686356
commit f5ed374100
3 changed files with 42 additions and 7 deletions

View File

@ -13,11 +13,13 @@ SECRET_POSTGRES_PASSWORD_VERSION=v1
SECRET_SHARED_SECRET_VERSION=v1
SECRET_RAILS_SECRET_VERSION=v1
SECRET_TURN_SECRET_VERSION=v1
SECRET_FSESL_PASSWORD_VERSION=v1
ENTRYPOINT_GREENLIGHT_VERSION=v1
ENTRYPOINT_COTURN_VERSION=v1
TURNSERVER_CONF_VERSION=v1
ENTRYPOINT_APPSAKKA_VERSION=v1
ENTRYPOINT_FSESLAKKA_VERSION=v1
# ====================================
# ADDITIONS to BigBlueButton

View File

@ -249,15 +249,21 @@ services:
- /var/log/bbb-webrtc-sfu
network_mode: host
# todo: fsesl-akka (bbb freeswitch integration)
# fsesl-akka (bbb freeswitch integration)
fsesl-akka:
image: alangecker/bbb-docker-fsesl-akka:v2.7.0
restart: unless-stopped
depends_on:
- redis
- freeswitch
environment:
FSESL_PASSWORD: ${FSESL_PASSWORD:-ClueCon}
# FSESL_PASSWORD is set via entrypoint
configs:
- source: entrypoint_fseslakka
target: /usr/local/bin/docker-entrypoint.sh
mode: 0555
secrets:
- fsesl_password
entrypoint: /usr/local/bin/docker-entrypoint.sh
networks:
bbb-net:
ipv4_address: 10.7.7.14
@ -401,6 +407,9 @@ configs:
entrypoint_appsakka:
name: ${STACK_NAME}_entrypoint_appsakka_${ENTRYPOINT_APPSAKKA_VERSION}
file: ./entrypoint.apps-akka.sh
entrypoint_fseslakka:
name: ${STACK_NAME}_entrypoint_fseslakka_${ENTRYPOINT_FSESLAKKA_VERSION}
file: ./entrypoint.fsesl-akka.sh
secrets:
postgres_password:
@ -415,14 +424,14 @@ secrets:
turn_secret:
external: true
name: ${STACK_NAME}_turn_secret_${SECRET_TURN_SECRET_VERSION}
fsesl_password:
external: true
name: ${STACK_NAME}_fsesl_password_${SECRET_FSESL_PASSWORD_VERSION}
etherpad_api_key:
external: true
name: ${STACK_NAME}_etherpad_api_key_${ETHERPAD_API_KEY_VERSION}
fsesl_password:
external: true
name: ${STACK_NAME}_fsesl_password_${FSESL_PASSWORD_VERSION}
networks:
bbb-net:
ipam:

24
entrypoint.fsesl-akka.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/sh -e
# set fsesl_password variable
if test -f "/run/secrets/fsesl_password"; then
pwd=`cat /run/secrets/fsesl_password`
if [ -z $pwd ]; then
echo >&2 "error: /run/secrets/fsesl_password is empty"
exit 1
fi
echo "entrypoint.fsesl-akka.sh setting FSESL_PASSWORD"
export "FSESL_PASSWORD"="${pwd}"
unset "pwd"
else
echo >&2 "error: /run/secrets/fsesl_password does not exist"
exit 1
fi
TARGET=/etc/bigbluebutton/bbb-fsesl-akka.conf
cp /etc/bigbluebutton/bbb-fsesl-akka.conf.tmpl $TARGET
sed -i "s/FSESL_PASSWORD/$FSESL_PASSWORD/" $TARGET
cd /bbb-fsesl-akka
/bbb-fsesl-akka/bin/bbb-fsesl-akka