Skip to content
Snippets Groups Projects
Select Git revision
  • 921cfd92fc8bc320fc100b57e079b4cc5a9fa753
  • main default
  • full_migration
  • v1.0.9 protected
  • v1.0.8 protected
  • v1.0.7 protected
  • v1.0.6 protected
  • v1.0.5 protected
  • v1.0.4 protected
  • v1.0.3 protected
  • v1.0.2 protected
  • v1.0.1 protected
  • v1.0 protected
13 results

docker_start.sh

Blame
  • 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