Pre-built image to deploy self-hosted Azure Pipelines agents
100K+
This repo provides pre-built images to run self-hosted Azure Pipelines agents.
GitHub repo: https://github.com/btnguyen2k/azp-k8s-agents
Azure DevOps personal access token: A personal access token (PAT) is used as an alternate password to authenticate into Azure DevOps. Use PAT instead of your password to register the agent with Azure DevOps Agent Pool. Create one by following these instructions.
The PAT must have at least Agent Pools (Read & manage) scope.
Azure Pipelines agent pool: The Azure Pipelines agent will join an agent pool so that it can be used. You can create a new agent pool or use an existing one.
The Azure Pipelines agent can be deployed as Docker container using the following command:
docker run -d -e AZP_URL=<your-azuredepops-instance> -e AZP_TOKEN=<pat> -e AZP_POOL=<azp-agentpool-name> -e AZP_AGENT_NAME=<agent-name> --name myazpagent btnguyen2k/azpagent-base:latest
| Env variable | Description | Default value |
|---|---|---|
| AZP_URL | The URL of the Azure DevOps or Azure DevOps Server instance. Example https://dev.azure.com/myaccount/ | |
| AZP_TOKEN | Personal access token (PAT) with Agent Pools (read, manage) scope. | |
| AZP_AGENT_NAME | Agent name | the container hostname |
| AZP_POOL | Agent pool name | Default |
| AZP_WORK | Work directory | _work |
Mount volumn to persist data in work directory
docker run -d -e AZP_URL=... -e AZP_TOKEN=... -e AZP_POOL=... -e AZP_AGENT_NAME=... -e AZP_WORK=/workspace -v /home/workspace/azp:/workspace --name mycontainer myazpagent:ubuntu-18.04
Content type
Image
Digest
Size
88.5 MB
Last updated
about 6 years ago
docker pull btnguyen2k/azpagent-base