#!/bin/bash # # Convenient script to start QA report application inside a docker container. # set -eu wait-for-it ${DB_HOST}:${DB_PORT:-5432} --timeout=10 echo 'PostgreSQL Database is up' # Always run migration upgrades echo 'Running migration upgrades' python3 manage.py db upgrade # Copy test cases into /tmp directory so runtime user can access it if ! [ -e /tmp/apertis-test-cases ]; then echo 'Copying test cases repo locally into /tmp ...' cp -a /var/lib/apertis-test-cases /tmp/ fi echo 'Starting QA Report App' ./webhook.py --config /app/secrets/config.yaml