Open dhofstetter opened 1 week ago
sounds good, i would merge a pull request that specifies the reason for this change in a comment + linking to this issue. perhaps maybe also a test with a different locale as described above.
apologies, did not consider this case in my testing, we have been trying to rely on logs as a more reliable/universal way to detect most of the community containers
Describe the bug
When starting a Postgres Testcontainer, the implementation expects a log line like the latter to ensure its properly started
In case you have a custom Postgres image (e.g. with lang/locales changed) this log line might not appear as expected.
To Reproduce
use the dockerfile above, and the log lines are more like
I think that using pg_isready is sufficient - so changing the code of PostgresContainer to
works like a charm.