Skip to content
Snippets Groups Projects
Commit 2c4a6a8c authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Generalize docker-entrypoint for further flask commands

parent 14503eb4
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
if [[ $# -eq 0 ]]
if [ $# -eq 0 ]
then
venv/bin/python -u opaque.py
elif [[ $1 == "--migrate" ]]
then
echo Migrating changes.
venv/bin/python -m flask db migrate
venv/bin/python -m flask db upgrade
venv/bin/python -u opaque.py
elif [ $1 == "flask" ]
then
echo "$@"
venv/bin/python -m $@
else
if [[ $1 == "--setup-database" ]]
then
echo Initial setup of database.
venv/bin/python -m flask db init
venv/bin/python -m flask db upgrade
venv/bin/python -m flask insert-initial-database-entries
fi
echo "Unknown command"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment