|
|
@ -83,13 +83,13 @@ if [ ! -z "${DO_POSTGRES}" ]; then |
|
|
|
done |
|
|
|
done |
|
|
|
elif [ ! -z "${START_POSTGRES_TESTCONTAINER}" ]; then |
|
|
|
elif [ ! -z "${START_POSTGRES_TESTCONTAINER}" ]; then |
|
|
|
# Fire up a test Postgres process. |
|
|
|
# Fire up a test Postgres process. |
|
|
|
docker_entrypoint.sh postgres & |
|
|
|
/docker_entrypoint.sh postgres & |
|
|
|
PID=$(echo $!) |
|
|
|
PID=$(echo $!) |
|
|
|
trap "kill $PID" EXIT |
|
|
|
trap "kill $PID" EXIT |
|
|
|
|
|
|
|
|
|
|
|
# Wait for postgres to be ready. |
|
|
|
# Wait for postgres to be ready. |
|
|
|
while true; do |
|
|
|
while true; do |
|
|
|
pg_isready -d mudbase -h localhost -p 5432 -U mudbase |
|
|
|
/usr/bin/pg_isready -d mudbase -h localhost -p 5432 -U mudbase |
|
|
|
[ "$(echo $?)" == "0" ] && break |
|
|
|
[ "$(echo $?)" == "0" ] && break |
|
|
|
sleep 1 |
|
|
|
sleep 1 |
|
|
|
done |
|
|
|
done |
|
|
|