Closed
Description
Hi,
I am starting some docker containers via a docker-compose.yml
file. In code, I use the DockerComposeContainer
class as following:
DockerComposeContainer c = new DockerComposeContainer(<path>).withTailChildContainers(true);
c.starting(null);
I would like to use the LogMessageWaitStrategy
(https://github.com/testcontainers/testcontainers-java/blob/master/core/src/main/java/org/testcontainers/containers/wait/LogMessageWaitStrategy.java) on this container. I must wait until certain log events occurred before I can start using the containers. The LogMessageWaitStrategy
should be perfect for this.
Is this possible? I am having a hard time to figure out how I should do this.
Thanks guys!