nopaque/docker-entrypoint.sh
2019-10-25 15:28:45 +02:00

18 lines
337 B
Bash
Executable File

#!/bin/sh
echo "Waiting for db..."
wait-for-it/wait-for-it.sh db:5432 --strict --timeout=0
echo "Waiting for redis..."
wait-for-it/wait-for-it.sh redis:6379 --strict --timeout=0
if [ $# -eq 0 ]
then
venv/bin/python -u opaque.py
elif [ $1 == "flask" ]
then
echo "$@"
venv/bin/python -m $@
else
echo "Unknown command"
fi