Merge pull request #13670 from fosterseth/wait_for_pg

docker-compose wait for pg to be ready
This commit is contained in:
Seth Foster 2023-03-10 16:35:27 -05:00 committed by GitHub
commit a97c1b46c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,10 @@ make awx-link
make version_file
if [[ -n "$RUN_MIGRATIONS" ]]; then
# wait for postgres to be ready
while ! nc -z postgres 5432; do
echo "Waiting for postgres to be ready to accept connections"; sleep 1;
done;
make migrate
else
wait-for-migrations