Windows | Linux (legacy) | Linux Ubuntu 20.04 (Build supports .NET Core 2.2 and 3.1) |
|
---|---|---|---|
Base | Dockerfile Docker Hub |
Dockerfile Docker Hub |
Dockerfile |
Build | Dockerfile Docker Hub |
Dockerfile Docker Hub |
Dockerfile |
Deploy | Dockerfile Docker Hub |
This project contains the docker files and build & release files for Azure DevOps self hosted agents. These agents are based on https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops
The container images require environment variables to run
Environment Variables | Description |
---|---|
AZP_URL | The URL of the Azure DevOps or Azure DevOps Server instance. |
AZP_TOKEN | Personal Access Token (PAT) with Agent Pools (read, manage) scope, created by a user who has permission to configure agents, at AZP_URL. |
AZP_POOL | Agent pool name |
NUGET_PACKAGES | Path to Nuget Package Cache on volume mount. |
POD_NAME | Pod Name. |
More details on this can be found here
To test the agents locally a PAT token is required with permissions Agent Pools (Read & Manage). The user who generated the PAT token also needs to be an Administrator on the agent pool.
The environment variables needed to run the agents locally can be seen in the manifest.yml files for each deployment. Below is an example of the docker run command for a linux build agent.
docker run -e AZP_URL=
-e AZP_TOKEN= -e AZP_POOL= -e NUGET_PACKAGES="/mnt/nugetcache/packages" --rm -it
More details on this can be found here