Page MenuHomeSoftware Heritage

[docker-compose] Ensure Kafka server is up before starting related services
ClosedPublic

Authored by anlambert on Mar 7 2019, 2:54 PM.

Details

Summary

When running docker-compose, all Kafka related services fail to start
due to the Kafka server being not yet up when trying to connect to it.

To ensure all kafka related services get correctly initialized, simply wait
for the Kafka server being up (using the great wait-for-it script) before
trying to connect to it.

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.