Skip to content

Commit 365c1bb

Browse files
bump mongo image
Signed-off-by: Adrian Cole <[email protected]>
1 parent 697209c commit 365c1bb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

instrumentation/mongodb/src/test/java/brave/mongodb/MongoDBContainer.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ final class MongoDBContainer extends GenericContainer<MongoDBContainer> {
3030
static final int MONGODB_PORT = 27017;
3131

3232
MongoDBContainer() {
33-
// Use OpenZipkin's small test image, which is multi-arch and doesn't consume Docker Hub quota
34-
super(parse("ghcr.io/openzipkin/mongodb-alpine:4.0.5"));
33+
// Mirrored image to avoid docker.io pulls:
34+
// docker buildx imagetools create --tag ghcr.io/openzipkin/mongo:8.2.6-noble mongo:8.2.6-noble
35+
super(parse("ghcr.io/openzipkin/mongo:8.2.6-noble"));
3536
if ("true".equals(System.getProperty("docker.skip"))) {
3637
throw new TestAbortedException("${docker.skip} == true");
3738
}
3839
withExposedPorts(MONGODB_PORT);
39-
waitStrategy = Wait.forLogMessage(".*waiting for connections.*", 1);
40+
waitStrategy = Wait.forLogMessage(".*[wW]aiting for connections.*", 1);
4041
withStartupTimeout(Duration.ofSeconds(60));
4142
withLogConsumer(new Slf4jLogConsumer(LOGGER));
4243
}

0 commit comments

Comments
 (0)