g3w-suite / g3w-admin

Server module for G3W-SUITE
https://g3w-suite.readthedocs.io/en/latest/g3wsuite_administration.html
Mozilla Public License 2.0
39 stars 30 forks source link

Replace `wait-for-it` with `pg_isready` within `setup_suite.sh` #879

Closed Raruto closed 2 weeks ago

Raruto commented 2 weeks ago

Before

# Wait for postgis
wait-for-it -h ${G3WSUITE_POSTGRES_HOST:-postgis} -p ${G3WSUITE_POSTGRES_PORT:-5432} -t 60

After

# Wait for postgis
until pg_isready -h ${G3WSUITE_POSTGRES_HOST:-postgis} -p ${G3WSUITE_POSTGRES_PORT:-5432}; do
  echo "wait 30s until is ready"
  sleep 30;
done

Related to: https://github.com/g3w-suite/g3w-suite-docker/pull/120