update recording containner scripts

This commit is contained in:
Sofyan Sugianto 2020-08-27 15:47:33 +07:00
parent a575e2ceab
commit 66d0541071
4 changed files with 18 additions and 9 deletions

View File

@ -77,8 +77,8 @@ RUN cd /usr/bin \
RUN groupadd -g 998 bigbluebutton && useradd -m -u 998 -g bigbluebutton bigbluebutton
COPY bigbluebutton.yml /usr/local/bigbluebutton/core/scripts/bigbluebutton.yml.tmpl
COPY log-collector.py /log-collector.py
COPY entrypoint.sh /entrypoint.sh
ADD log-collector.py /log-collector.py
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT dockerize \
-template /usr/local/bigbluebutton/core/scripts/bigbluebutton.yml.tmpl:/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml \
/entrypoint.sh

View File

@ -4,15 +4,24 @@
python3 -u /log-collector.py &
cd /usr/local/bigbluebutton/core/scripts
PATH_CHECK="/var/bigbluebutton/recording/status"
while true; do
echo "execute workers..."
if [[ compgen -G "$PATH_CHECK/recorded/*.done" ]];then
bundle exec ruby rap-archive-worker.rb
fi
if [[ compgen -G "$PATH_CHECK/archived/*.done" ]];then
bundle exec ruby rap-sanity-worker.rb
fi
if [[ compgen -G "$PATH_CHECK/sanity/*.done" ]];then
bundle exec ruby rap-process-worker.rb
fi
if [[ compgen -G "$PATH_CHECK/processed/*.done" ]];then
bundle exec ruby rap-publish-worker.rb
bundle exec ruby rap-caption-inbox.rb
fi
#bundle exec ruby rap-caption-inbox.rb
if [[ compgen -G "$PATH_CHECK/ended/*.done" ]];then
bundle exec ruby rap-events-worker.rb
sleep 30s
fi
sleep 30s
done

View File

@ -7,7 +7,7 @@ cd $(dirname $0)/..
if [ -f .env ]
then
# exclude WELCOME_FOOTER because it may contain invalid characters
export $(cat .env | sed 's/#.*//g' | grep -v "WELCOME_FOOTER" | xargs)
export $(cat .env | sed 's/#.*//g' | grep -v "WELCOME_FOOTER" | grep -v "WELCOME_MESSAGE" | xargs)
fi
if [ ! "$ENABLE_RECORDING" == true ]; then

View File

@ -58,7 +58,7 @@ if [ "$ENABLE_PROMETHEUS_EXPORTER" == true ]; then
fi
if [ "$ENABLE_RECORDING" == true ]; then
COMPOSE_FILES="$COMPOSE_FILES -f docker-compose.recording.yml"
COMPOSE_FILES="$COMPOSE_FILES -f docker-compose.recordings.yml"
fi
docker-compose $COMPOSE_FILES $@