Azure Pipelines virtual machine deployment 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:
sudo mkdir -p /azvm/_workAZVM_TOKEN can be obtained from User settings -> Personal Access Token -> + New Token (Read+Write+Manage permission)
docker swarm init # for the first time only
docker stack deploy -c docker-compose.yaml azvmagent