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 buildFill 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/_workdocker swarm init # for the first time only
docker stack deploy -c docker-compose.yaml azagent