Microsoft

Cross-Platform Container Builds with Azure Pipelines

Feb 21, 2019Edward Thomson
Cross-Platform Container Builds with Azure Pipelines
SummaryAI, from the source post

This post details how to configure Azure Pipelines to use custom Docker containers for build jobs. It provides a step-by-step guide on creating a Dockerfile with necessary dependencies (e.g., `yum install` for CentOS), building the Docker image, pushing it to a registry (Docker Hub), and then referencing it in the `azure-pipelines.yml` file using the `resources.containers` and `container` syntax. It also demonstrates how to map local directories to container directories for source and binary access, and how to share build scripts between local and CI environments. A specific example of building libgit2 on CentOS with updated libssh2 is provided to illustrate troubleshooting and dependency management within containers.

More from the Azure Pipelines Agent Operating System Support trail