Skip to content

Commit cd35993

Browse files
chungngoopskiview
authored andcommitted
Update MS SQL Server image to new official location (#992)
Fixes #944
1 parent 48f2af7 commit cd35993

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
microsoft/mssql-server-linux:2017-CU6
1+
mcr.microsoft.com/mssql/server:2017-CU12

modules/mssqlserver/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class SomeTest {
1919
... create a connection and run test as normal
2020
```
2121

22-
> *Note:* Due to licencing restrictions you are required to accept an EULA for this container image. To indicate that you accept the MS SQL Server image EULA, Please place a file at the root of the classpath named `container-license-acceptance.txt`, e.g. at `src/test/resources/container-license-acceptance.txt`. This file should contain the line: `microsoft/mssql-server-linux:latest`
22+
> *Note:* Due to licencing restrictions you are required to accept an EULA for this container image. To indicate that you accept the MS SQL Server image EULA, Please place a file at the root of the classpath named `container-license-acceptance.txt`, e.g. at `src/test/resources/container-license-acceptance.txt`. This file should contain the line: `mcr.microsoft.com/mssql/server:latest`
2323

2424
## Dependency information
2525

modules/mssqlserver/src/main/java/org/testcontainers/containers/MSSQLServerContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
*/
88
public class MSSQLServerContainer<SELF extends MSSQLServerContainer<SELF>> extends JdbcDatabaseContainer<SELF> {
99
public static final String NAME = "mssqlserver";
10-
public static final String IMAGE = "microsoft/mssql-server-linux";
11-
public static final String DEFAULT_TAG = "2017-CU6";
10+
public static final String IMAGE = "mcr.microsoft.com/mssql/server";
11+
public static final String DEFAULT_TAG = "2017-CU12";
1212

1313
public static final Integer MS_SQL_SERVER_PORT = 1433;
1414
private String username = "SA";

0 commit comments

Comments
 (0)