From 9309044af8ba1b173ab69b874665670180871f93 Mon Sep 17 00:00:00 2001 From: Mattias Cibien Date: Fri, 31 May 2024 20:37:54 +0200 Subject: [PATCH] Fix postCreateCommand.sh (#258) * Fix postCreateCommand.sh * Added new version --- src/dotnet-mssql/.devcontainer/mssql/postCreateCommand.sh | 4 ++-- src/dotnet-mssql/devcontainer-template.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dotnet-mssql/.devcontainer/mssql/postCreateCommand.sh b/src/dotnet-mssql/.devcontainer/mssql/postCreateCommand.sh index e25583e0..4fb0bca7 100644 --- a/src/dotnet-mssql/.devcontainer/mssql/postCreateCommand.sh +++ b/src/dotnet-mssql/.devcontainer/mssql/postCreateCommand.sh @@ -58,7 +58,7 @@ then then dbname=$(basename $f ".dacpac") echo "Deploying dacpac $f" - /opt/sqlpackage/sqlpackage /Action:Publish /SourceFile:$f /TargetServerName:localhost /TargetDatabaseName:$dbname /TargetUser:sa /TargetPassword:$SApassword + /opt/sqlpackage/sqlpackage /Action:Publish /SourceFile:$f /TargetTrustServerCertificate:True /TargetServerName:db /TargetDatabaseName:$dbname /TargetUser:sa /TargetPassword:$SApassword fi done -fi \ No newline at end of file +fi diff --git a/src/dotnet-mssql/devcontainer-template.json b/src/dotnet-mssql/devcontainer-template.json index c690ed85..7dae0a3b 100644 --- a/src/dotnet-mssql/devcontainer-template.json +++ b/src/dotnet-mssql/devcontainer-template.json @@ -1,6 +1,6 @@ { "id": "dotnet-mssql", - "version": "3.1.0", + "version": "3.2.0", "name": "C# (.NET) and MS SQL", "description": "Develop C# and .NET Core based applications. Includes all needed SDKs, extensions, dependencies and an MS SQL container for parallel database development. Adds an additional MS SQL container to the C# (.NET Core) container definition and deploys any .dacpac files from the mssql .devcontainer folder.", "documentationURL": "https://github.com/devcontainers/templates/tree/main/src/dotnet-mssql",