Select Git revision
docker-entrypoint
docker-entrypoint 542 B
#!/bin/bash
echo 'Starting docker container'
set -e
function assertPresence() {
VARIABLE_NAME=$1
if [ -z ${!VARIABLE_NAME} ]; then
echo "${VARIABLE_NAME} is unset. Please set this label to run this docker container";
exit 1
fi
}
assertPresence UWSGI_PROCESS_PER_CONTAINER
sed -i.bak "s/UWSGI_PROCESS_PER_CONTAINER/$UWSGI_PROCESS_PER_CONTAINER/" /uwsgi.ini
exec "$@"
python manage.py compilemessages
/app/docker/scripts/postgres-alive
python manage.py migrate --noinput
exec python manage.py runserver 0:8000