Deploying a container to ACI with a CI/CD pipeline
One of the major reasons Docker has quickly become attractive to developers and operations teams is because the deployment of Docker images and containers has made CI and CD pipelines for enterprise applications easier.
To automate the deployment of our application, we will create a CI/CD pipeline that deploys the Docker image containing our application in ACI.
ACI is a managed service by Azure that allows you to deploy containers very easily, without having to worry about the hardware architecture.
Note
To learn more about ACI, head to the official page at https://azure.microsoft.com/en-us/services/container-instances/.
In addition, we will use Terraform for infrastructure as code (IaC), which we discussed in Chapter 2, Provisioning Cloud Infrastructure with Terraform, using the Azure ACI resource and its integration with the Docker image.
We will therefore divide this section into two parts, as follows:
-
...