Select Git revision
docker_start.sh
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
docker_start.sh 800 B
#!/bin/bash
# This file is executed when the docker container starts!
mkdir -p ./log/
if [ $# = 1 ] && [ $1 = "-test" ]; then
echo "Running tests"
# We always execute from src (For consistency with uWSGI)
cd src
uname -a
export VIDEOAG_API_TEST_CONFIG_OVERRIDE="../config/test_config_override.py"
python3 -V
python3 -m coverage run --data-file "../coverage/.data" run_tests.py
python3 -m coverage report --data-file "../coverage/.data" --include "./*"
python3 -m coverage report --data-file "../coverage/.data" -m --include "./*" > ../coverage/report.txt
python3 -m coverage html -d "../coverage/html/" --data-file "../coverage/.data" --include "./*"
else
echo "Running nginx and uWSGI"
nginx -c ${VIDEOAG_NGINX_CONFIG} -p . &
exec uwsgi --ini ${VIDEOAG_UWSGI_CONFIG}
fi