Skip to content

Commit

Permalink
[pinpoint-apm#11506] Update MSSQL docket images
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Sep 20, 2024
1 parent ff3c046 commit 5da784b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void beforeClass() {
Assumptions.assumeTrue(DockerClientFactory.instance().isDockerAvailable(), "Docker not enabled");
Assumptions.assumeFalse(DockerTestUtils.isArmDockerServer(), "ARM not supported");

container = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2017-CU12");
container = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04");
container.acceptLicense();
container.withInitScript("mssql-init.sql");
container.start();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class JtdsConnectionIT {
public static final JdbcDatabaseContainer<?> mssqlserver = newMSSQLServerContainer(logger.getName());

public static JdbcDatabaseContainer<?> newMSSQLServerContainer(String loggerName) {
final MSSQLServerContainer<?> mssqlServerContainer = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2019-latest");
final MSSQLServerContainer<?> mssqlServerContainer = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04");
mssqlServerContainer.acceptLicense();
mssqlServerContainer.withInitScript("sql/init_mssql.sql");
mssqlServerContainer.withPassword(JtdsITConstants.PASSWORD);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class MsSqlServer implements SharedTestLifeCycle {
public Properties beforeAll() {
Assume.assumeTrue("Docker not enabled", DockerClientFactory.instance().isDockerAvailable());

mssqlserver = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2019-latest");
mssqlserver = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04");
mssqlserver.acceptLicense();
mssqlserver.withInitScript("sql/init_mssql.sql");
mssqlserver.withPassword(JtdsITConstants.PASSWORD);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private MSSQLServerContainerFactory() {
}

public static MSSQLServerContainer<?> newMSSQLServerContainer(String loggerName) {
final MSSQLServerContainer<?> mssqlServerContainer = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2017-CU12");
final MSSQLServerContainer<?> mssqlServerContainer = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04");
mssqlServerContainer.acceptLicense();
mssqlServerContainer.withInitScript("sql/init_mssql.sql");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class MssqlServer implements SharedTestLifeCycle {
public Properties beforeAll() {
Assumptions.assumeTrue(DockerClientFactory.instance().isDockerAvailable(), "Docker not enabled");

container = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2017-CU12");
container = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04");
container.waitingFor(Wait.forListeningPort());
container.withInitScript("mssql-init.sql");
container.start();
Expand Down

0 comments on commit 5da784b

Please sign in to comment.