[Docker] API server starts before PostgreSQL is ready
|Target version:||Arvados Future Sprints|
|Velocity based estimate||-|
The API server Docker image runs both the Passenger server and PostgreSQL under supervisord. No relation is declared between them, so Passenger often starts before PostgreSQL is ready, causing the whole container to be non-functional. Prevent this from happening.
#1 Updated by Ward Vandewege about 2 years ago
Adding a test for postgres availability to passenger.sh would probably solve this. Here's an example of such a test: