Skip to content

Commit

Permalink
Remove MSSQL_PID
Browse files Browse the repository at this point in the history
I see some strange timeout issues on other repositories. It could be that "Express" edition behaves different under certain conditions. By removing `MSSQL_PID`, we go back to the default value, which is `Developer`.
  • Loading branch information
andyundso committed Nov 19, 2024
1 parent de79ee2 commit 9be7b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ forceencryption = 1
}

Write-Output "Starting a Docker Container"
Invoke-Expression "docker run --name=`"sql`" -e `"ACCEPT_EULA=Y`"-e `"SA_PASSWORD=$SaPassword`" -e `"MSSQL_PID=Express`" --health-cmd=`"$ToolsPath/bin/sqlcmd -C -S localhost -U sa -P '$SaPassword' -Q 'SELECT 1' -b -o /dev/null`" --health-start-period=`"10s`" --health-retries=3 --health-interval=`"10s`" -p 1433:1433 $AdditionalContainerConfiguration -d `"mcr.microsoft.com/mssql/server:$Version-$Tag`""
Invoke-Expression "docker run --name=`"sql`" -e `"ACCEPT_EULA=Y`"-e `"SA_PASSWORD=$SaPassword`" --health-cmd=`"$ToolsPath/bin/sqlcmd -C -S localhost -U sa -P '$SaPassword' -Q 'SELECT 1' -b -o /dev/null`" --health-start-period=`"10s`" --health-retries=3 --health-interval=`"10s`" -p 1433:1433 $AdditionalContainerConfiguration -d `"mcr.microsoft.com/mssql/server:$Version-$Tag`""
Wait-ForContainer
}

Expand Down

0 comments on commit 9be7b13

Please sign in to comment.