Move the mailman-core image to apline linux

This commit is contained in:
Abhilash Raj
2017-04-25 16:58:32 -07:00
committed by Abhilash Raj
parent 2e2b510364
commit 2857394872
2 changed files with 16 additions and 11 deletions

View File

@@ -15,11 +15,13 @@ function wait_for_postgres () {
# moving forward.
# TODO: Use python's psycopg2 module to do this in python instead of
# installing postgres-client in the image.
until psql $DATABASE_URL -c '\l'; do
>&2 echo "Postgres is unavailable - sleeping"
sleep 1
done
>&2 echo "Postgres is up - continuing"
# until psql $DATABASE_URL -c '\l'; do
# >&2 echo "Postgres is unavailable - sleeping"
# sleep 1
# done
# >&2 echo "Postgres is up - continuing"
sleep 10
# TODO: Just sleep and do not require postgres client for the image maybe.
}