Skip to content

Commit

Permalink
Mongo 7 for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prdoyle committed Aug 11, 2024
1 parent 09c32d7 commit 1a151d9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ public void close() {
}

private static GenericContainer<?> mongoContainer() {
// For some reason, creating a MongoDBContainer makes the Hanoi test WAY slower, like 100x
GenericContainer<?> result = new GenericContainer<>(
new ImageFromDockerfile().withDockerfileFromBuilder(builder -> builder
.from("mongo:4.4")
.from("mongo:7.0")
.run("echo \"rs.initiate()\" > /docker-entrypoint-initdb.d/rs-initiate.js")
.cmd("mongod", "--replSet", "rsLonesome", "--port", "27017", "--bind_ip_all")
.build()))
Expand Down

0 comments on commit 1a151d9

Please sign in to comment.