Page MenuHomeSoftware Heritage

[docker-compose] Also use wait-for-it script to ensure postresql dbs are up
ClosedPublic

Authored by anlambert on Mar 11 2019, 1:24 PM.

Details

Summary

While testing the docker-compose environment on my personal laptop,
I encountered some database connection issues as some postgresql servers
were not yet up.

So as for RabbitMQ and Kafka, use the wait-for-it script as its seems more
reliable to wait for network services to start.

Also add missing wait for postgres initialization in swh-listers-worker
container entrypoint.

Diff Detail

Repository
rCDFD Dockerfiles for developers
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.