Skip to content

Commit

Permalink
upgrade postgres version
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Dec 22, 2023
1 parent 679ec6c commit 0dc3f7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,9 @@ public class DBContainerInitializer
implements ApplicationContextInitializer<ConfigurableApplicationContext> {

private static final PostgreSQLContainer<?> sqlContainer =
new PostgreSQLContainer<>("postgres:16.1-alpine")
.withDatabaseName("integration-tests-db")
.withUsername("username")
.withPassword("password");
new PostgreSQLContainer<>("postgres:16.1-alpine");

private static final MariaDBContainer<?> mariaDBContainer =
new MariaDBContainer<>("mariadb")
.withDatabaseName("integration-tests-db")
.withUsername("username")
.withPassword("password");
private static final MariaDBContainer<?> mariaDBContainer = new MariaDBContainer<>("mariadb");

static {
Startables.deepStart(sqlContainer, mariaDBContainer).join();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public class TestContainersConfiguration {
@ServiceConnection
@RestartScope
PostgreSQLContainer<?> postgreSQLContainer() {
return new PostgreSQLContainer<>("postgres:15.3-alpine");
return new PostgreSQLContainer<>("postgres:16.1-alpine");
}
}

0 comments on commit 0dc3f7f

Please sign in to comment.