![]() My first attempt at running this ran into an issue where the agent container couldn’t resolve local DNS entries, but Robin Winslow’s article, Fix Docker’s networking DNS config, showed me a neat trick to fix the problem. ![]() Not only do they have a build agent image, but this image can also run Docker to do Docker builds (I chose option two under Running Builds Which Require Docker in the linked document above). JetBrains, maker of TeamCity (amongst other products), provides a Docker image for their build agent. Rather than create a new virtual machine (VM), install and configure an OS, install the build agent, and finally install Docker, I chose a much nerdier path. For this demonstration, I use TeamCity as most of my experience is with Azure DevOps, and I want to expand my horizons. Most major build servers can build Docker images either with a built-in step or a downloadable plugin. For our build server, we’ll perform the following tasks:Īdd the Docker build capability to the build agent The continuous part is usually associated with an event that triggers a build, such as source code commits or a predefined schedule. Install the Octopus Deploy TeamCity pluginĬonfigure Docker continuous integration with JetBrains’ TeamCityĬontinuous integration happens on the build server.Configure Docker continuous delivery with Octopus Deploy.Add the Docker build capability to the build agent.Configure Docker continuous integration with JetBrains’ TeamCity.
0 Comments
Leave a Reply. |