Dockerfiles to create Self-hosted images for Azure DevOps Pipelines
Based on Running in Docker.
From within a directory, such as /ubuntu/minimal
:
docker build -t dockeragent:latest .
This will install the latest version of the agent, configure it, and run the agent targeting the Default pool of a specified Azure DevOps or Azure DevOps Server instance of your choice:
docker run -e AZP_URL=<Azure DevOps instance> -e AZP_TOKEN=<PAT token> -e AZP_AGENT_NAME=mydockeragent dockeragent:latest