Azure Pipelines agent running as a Docker container, replicated using Swarm
- Docker
- Docker Compose
You only need to build if you change the source. Otherwise, the image will be pulled automatically.
docker-compose build
Fill in missing configuration in the environment
section of docker-compose.yaml
.
Create a directory on the host to host jobs data and Docker tasks volumes:
mkdir /azp/_work
docker swarm init # for the first time only
docker stack deploy -c docker-compose.yaml azagent