forked from extern/docker
update recording containner scripts
This commit is contained in:
parent
a575e2ceab
commit
66d0541071
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 $@
|
||||
|
Loading…
Reference in New Issue
Block a user