This repository houses a pre-fab buildagent for Azure Devops in Docker.
The source for this buildagent can be found at Microsoft's documentation regarding Docker agents for Azure Devops
Create a container based on this Docker image, hosted at the Docker hub. For more information on the required environment variables, see Microsoft's documentation.
You can use the following docker run
command. Be sure to replace the environment variable's values with your organization values: docker run --name selfhosted_agent -d -e AZP_URL=https://dev.azure.com/organizationname -e AZP_TOKEN=personalaccesstoken -e AZP_AGENT_NAME=selfhosted_devops_agent -e AZP_POOL="Self-hosted agents" physer/azuredevops-agent:latest
There is also a compose.yaml
file using Docker Compose
for easy local testing. If you want to use this, be sure to copy over .env.example
and rename the copy to .env
. Fill the environment variables correctly as specified above.
Some additional software has been installed on this image:
- NodeJS v22.15
- Azure CLI
- Azure Function Core Tools (v4)