SkillsFundingAgency / das-azure-pipelines-agents

MIT License
0 stars 2 forks source link

DAS Azure Pipelines Agents

Windows Linux (legacy) Linux Ubuntu 20.04
(Build supports .NET Core 2.2 and 3.1)
Base Dockerfile
Docker Hub
Build Status
Dockerfile
Docker Hub
Build Status
Dockerfile
Build Status
Build Dockerfile
Docker Hub
Build Status
Dockerfile
Docker Hub
Build Status
Dockerfile
Build Status
Deploy Dockerfile
Docker Hub
Build Status
UK Government logo

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

🚀 Installation

Pre-Requisites

Config

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

Running locally

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

🔗 External Dependencies

🐛 Known Issues