Circleci/postgres:9.6 docker image too slow to start


#1

It seems that the Postgres DB is not started when we perform our tests.
https://circleci.com/gh/hugoai/hg-api/767

Adding a step “Waiting for DB” make those tests pass fine.
https://circleci.com/gh/hugoai/hg-api/773


#2

I think this is known issue of a racing containers due to parallel start of containers, and waiting for container to fully start is your responsibility at this point – Prevent race conditions by waiting for services with Dockerize


#3

Question, how can I access this entry " Prevent race conditions by waiting for services with Dockerize", every time I’m trying to follow it I get “Sorry, you don’t have access to that topic!” and I need to see the answer!!


#4

I can’t see it either @stevenbarragan, it’s probably deleted. I expect it would have referred to a waiting script. Probably something like this:


#5

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.