nopaque/docker-entrypoint.sh

17 lines
324 B
Bash
Raw Normal View History

2019-11-29 14:08:16 +00:00
#!/bin/bash
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
source venv/bin/activate
if [ $# -eq 0 ]; then
flask deploy
python nopaque.py
elif [ $1 == "flask" ]; then
flask ${@:2}
else
echo "$0 [flask [options]]"
fi