Story time At the company I currently work for, our CI pipelines run on a dedicated server that we own and manage on premise. This build server is using Atlassian Bamboo and is configured to run the builds using agents running directly inside the host OS which means builds share and depend on components installed on the host OS. This configuration has been working fine for us and we rarely run into issues with it.
In the previous post I showed how to setup a Dotnet Core WebApi project to run inside docker. In part 2, I’ll go over what is needed to containerize an SQL server and connect the WebApi to it. What do you need? This post assumes you have Docker Community Edition installed on your machine. If not, you can grab a copy from here. Containerizing Microsoft SQL Server Thankfully, Microsoft has created a base image for the SQL server which I will be using in this blog post.
I have been hearing a lot of people talking about docker and all of the benefits it introduces and they got me interested in the technology. However, I only recently managed to get some time to play around with Docker. What I attempted to do was to take a DotNet Core WebApi project that I’m building and containerize it. The WebApi project was build initially with no intention of containerizing and it was surprising how easy it is to get it up and running in docker.