-
Notifications
You must be signed in to change notification settings - Fork 0
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
Integration Tests #31
Comments
Docker and SQL Server on Linux? |
https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-ssis?view=sql-server-ver16 🤯 |
The plot thickens... SSIS might work on Linux, but not via Docker it seems. Also, running a Managed SQL Server in Azure is looking overtly expensive (~£600pcm) because of vCore licensing. I wonder if a VM with developer edition would be sufficient?
Source: https://www.microsoft.com/en-us/sql-server/sql-server-downloads |
@DataShedEd pointed me in the direction of "SQL Server 2019 on Windows Server 2019" - an Azure resource provided by Microsoft. Looks to cost ~£8.50pcm, which is far more favourable! Going to give this a spin up and tinker to see if it's viable for our needs |
Boy, that was mighty painful. Summary of learnings:
So I have something working in Azure, just, but I'm not particularly happy about it. Methinks Docker is a superior solution, if we can get it to work, as this has the added benefits of:
|
Welp, SSIS on Linux is entirely different, so not sure Docker is the way to go (unless we build a Windows Docker image, but that will not be available to run locally for non-Windows users). The SQL Agent side of things is easy enough: docker run \
--env ACCEPT_EULA=Y \
--env MSSQL_AGENT_ENABLED=True \
--env SA_PASSWORD=Ohs0Secure. \
--publish 1433:1433 \
--detach \
mcr.microsoft.com/mssql/server:2019-CU16-ubuntu-20.04 The main magic there 👆 is the I'll maybe spend another hour trying to coerce a Linux container in to running SSIS, but I'm far from optimistic. |
Feels like we need a full-blown (i.e. requires SSISDB and SQL Agent) SQL Server to deploy things to ensure that the solution works as expected on the target.
i.e. unit testing only gets us so far - the "true test" is once we use it in a production equivalent environment.
We'd chatted previously about spinning up a SQL instance in Azure as a deployment target.
We'll need to think about how we verify that things are successful upon deployment, and how we hook that in to the build pipeline(s).
The text was updated successfully, but these errors were encountered: