Error connecting to MSSQL Server when running TestContainers via Gitlab CI #557
Unanswered
ryan-buckman
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Can you add the connection string you get on Gitlab CI? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
I'm trying to setup a simple proof of concept running
TestContainers
viaGitlab CI
, unfortunately I've run into a bit of a problem using the pre-configuredMicrosoft SQL Server
container. I am using the tests found in MsSqlTestcontainerTests - the tests pass locally but when run via myGitlab CI
pipeline I get the following errorSqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired. Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x2AF9. Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. 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.. [xUnit.net 00:00:46.22] IntegrationTests.MsSqlServerTest.ExecScriptInRunningContainer [FAIL]
Docker variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
DOCKER_TLS_VERIFY: 0
Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions