openvidu/openvidu-server/docker/openvidu-recording/entrypoint.sh

19 lines
516 B
Bash
Raw Normal View History

#!/bin/bash -x
2018-01-23 11:59:02 +01:00
### Use container as a single headless chrome ###
if [ "$HEADLESS_CHROME_ONLY" == true ]; then
google-chrome --no-sandbox --headless --remote-debugging-port=$HEADLESS_CHROME_PORT &> /chrome.log &
sleep 100000000
else
### Use container as OpenVidu recording module ###
RECORDING_TYPE=${RECORDING_TYPE:-COMPOSED}
if [[ "${RECORDING_TYPE}" == "COMPOSED" ]]; then
./composed.sh
elif [[ "${RECORDING_TYPE}" == "COMPOSED_QUICK_START" ]]; then
./composed_quick_start.sh
2018-02-06 10:09:14 +01:00
fi
fi