Skip to content

LogMessageWaitStrategy for DockerComposeContainer #515

Closed
@s2929346

Description

@s2929346

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions