2019-11-29 14:08:16 +00:00
|
|
|
#!/bin/bash
|
2019-09-05 12:42:21 +00:00
|
|
|
|
2019-10-25 13:28:45 +00:00
|
|
|
echo "Waiting for db..."
|
2019-11-29 14:08:16 +00:00
|
|
|
wait-for-it db:5432 --strict --timeout=0
|
2019-10-25 13:28:45 +00:00
|
|
|
echo "Waiting for redis..."
|
2019-11-29 14:08:16 +00:00
|
|
|
wait-for-it redis:6379 --strict --timeout=0
|
2019-10-25 13:28:45 +00:00
|
|
|
|
2019-10-17 09:16:08 +00:00
|
|
|
if [ $# -eq 0 ]
|
2019-09-05 12:42:21 +00:00
|
|
|
then
|
2019-10-17 09:16:08 +00:00
|
|
|
venv/bin/python -u opaque.py
|
|
|
|
elif [ $1 == "flask" ]
|
|
|
|
then
|
|
|
|
echo "$@"
|
|
|
|
venv/bin/python -m $@
|
2019-09-05 12:42:21 +00:00
|
|
|
else
|
2019-10-17 09:16:08 +00:00
|
|
|
echo "Unknown command"
|
2019-09-05 12:42:21 +00:00
|
|
|
fi
|