Integrate apps-akka

This commit is contained in:
2024-10-02 15:50:05 +02:00
parent 87abadb510
commit 807bd49a2c
3 changed files with 34 additions and 3 deletions

View File

@ -17,6 +17,7 @@ SECRET_TURN_SECRET_VERSION=v1
ENTRYPOINT_GREENLIGHT_VERSION=v1
ENTRYPOINT_COTURN_VERSION=v1
TURNSERVER_CONF_VERSION=v1
ENTRYPOINT_APPSAKKA_VERSION=v1
# ====================================
# ADDITIONS to BigBlueButton

View File

@ -262,17 +262,23 @@ services:
bbb-net:
ipv4_address: 10.7.7.14
# todo: apps-akka (seems to be an bbb app integration endpoint)
# apps-akka (seems to be an bbb app integration endpoint)
apps-akka:
image: alangecker/bbb-docker-apps-akka:v2.7.3
restart: unless-stopped
depends_on:
- redis
environment:
DOMAIN: ${DOMAIN}
SHARED_SECRET: /run/secret/shared_secret
# SHARED_SECRET is set via entrypoint
volumes:
- vol-freeswitch:/var/freeswitch/meetings
configs:
- source: entrypoint_appsakka
target: /usr/local/bin/docker-entrypoint.sh
mode: 0555
secrets:
- shared_secret
entrypoint: /usr/local/bin/docker-entrypoint.sh
networks:
bbb-net:
ipv4_address: 10.7.7.15

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

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