Skip to content

Commit

Permalink
[fix][io] Upgrade mssql server docker tag in DebeziumMsSqlContainer (a…
Browse files Browse the repository at this point in the history
…pache#23318)

(cherry picked from commit a875deb)
(cherry picked from commit 4a05d51)
  • Loading branch information
lhotari authored and nikhil-ctds committed Sep 19, 2024
1 parent 594b1cf commit e290b76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class DebeziumMsSqlContainer extends ChaosContainer<DebeziumMsSqlContaine
// "You may install and use copies of the software on any device,
// including third party shared devices, to design, develop, test and demonstrate your programs.
// You may not use the software on a device or server in a production environment."
private static final String IMAGE_NAME = "mcr.microsoft.com/mssql/server:2019-CU12-ubuntu-20.04";
private static final String IMAGE_NAME = "mcr.microsoft.com/mssql/server:2019-CU28-ubuntu-20.04";

public DebeziumMsSqlContainer(String clusterName) {
super(clusterName, IMAGE_NAME);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private ContainerExecResult runSqlCmd(String cmd, boolean useTestDb) throws Exce
log.info("Executing \"{}\"", cmd);
ContainerExecResult response = this.debeziumMsSqlContainer
.execCmd("/bin/bash", "-c",
"/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P \""
"/opt/mssql-tools18/bin/sqlcmd -C -S localhost -U sa -P \""
+ DebeziumMsSqlContainer.SA_PASSWORD + "\" -Q \""
+ (useTestDb ? "USE TestDB; " : "")
+ cmd
Expand Down

0 comments on commit e290b76

Please sign in to comment.