Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround sqlserver 2022-latest latest image failing #383

Merged
merged 2 commits into from
Jul 24, 2024

Commits on Jul 24, 2024

  1. Workaround sqlserver 2022-latest latest image failing

    .. because the path `/opt/mssql-tools/bin/sqlcmd`
    changed to `/opt/mssql-tools18/bin/sqlcmd`. And this is being used in
    `samples/DatabaseContainers/DatabaseContainers.AppHost/sqlserverconfig/configure-db.sh`.
    
    testcontainers/testcontainers-dotnet#1220
    microsoft/mssql-docker#892
    radical committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    7c3e38c View commit details
    Browse the repository at this point in the history
  2. Fix sqlcmd invocation to trust the server certificate

    Fixes:
    ```
    Sqlcmd: Error: Microsoft ODBC Driver 18 for SQL Server : TCP Provider: Error code 0x2749.
    Sqlcmd: Error: Microsoft ODBC Driver 18 for SQL Server : SSL Provider: [error:0A000086:SSL routines::certificate verify failed:self-signed certificate].
    Sqlcmd: Error: Microsoft ODBC Driver 18 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to 2d77e8a3691a. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..
    Sqlcmd: Error: Microsoft ODBC Driver 18 for SQL Server : Client unable to establish connection. For solutions related to encryption errors, see https://go.microsoft.com/fwlink/?linkid=2226722.
    ```
    radical committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    cfc5db9 View commit details
    Browse the repository at this point in the history