Skip to content

Commit

Permalink
chore(deps): update mongo docker tag to v8 (#1421)
Browse files Browse the repository at this point in the history
* chore(deps): update mongo docker tag to v8

* upgrade to latest versions

* fix : spotless issue

* downgrade version for cluster to work

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Raja Kolli <[email protected]>
  • Loading branch information
renovate[bot] and rajadilipkolli authored Oct 1, 2024
1 parent ba5fe6f commit e94afdb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion boot-mongodb-elasticsearch/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3.9"
services:
mongodb:
hostname: mongodb
image: mongo:7.0.14
image: mongo:8.0.0
volumes:
- mongodb:/data/db
ports:
Expand Down
2 changes: 1 addition & 1 deletion boot-mongodb-elasticsearch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
<configuration>
<java>
<googleJavaFormat>
<version>1.22.0</version>
<version>1.23.0</version>
<style>AOSP</style>
</googleJavaFormat>
</java>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ public class TestApplication {
@Bean
@RestartScope
ElasticsearchContainer elasticsearchContainer() {
return new ElasticsearchContainer("docker.elastic.co/elasticsearch/elasticsearch:8.14.2")
return new ElasticsearchContainer("docker.elastic.co/elasticsearch/elasticsearch:8.15.2")
.withEnv(Map.of("xpack.security.enabled", "false"));
}

@ServiceConnection
@Bean
@RestartScope
MongoDBContainer mongoDBContainer() {
return new MongoDBContainer(DockerImageName.parse("mongo").withTag("7.0.12"))
.withSharding();
return new MongoDBContainer(DockerImageName.parse("mongo").withTag("8.0.0")).withSharding();
}

public static void main(String[] args) {
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock

mongodb:
image: mongo:7.0.14
image: mongo:8.0.0
ports:
- "27017:27017"
volumes:
Expand Down

0 comments on commit e94afdb

Please sign in to comment.