Building Rationally: Easy CI
Explore how Docker enables efficient continuous integration by building software inside containers. Learn to define build dependencies in Dockerfiles for consistent builds across development machines and CI servers. Understand the benefits of consolidating build and test environments with Docker and Kubernetes, using practical examples like ASP.NET Core applications. This lesson helps you create synchronized and reproducible build processes to improve your development workflow.
We'll cover the following...
Note that I wrote “build” in the preceding chapter, while most of what we did in our Dockerfile files was pack our software, not build it.
But I really meant build. Docker is not only a technology to pack your software, but it can build it too. When you build an image, you are actually running software inside a container, the RUN commands in the Dockerfile file. Since those RUN commands run in an image, the image describes the dependencies needed to build the software.
Remember ...