A simple, debian-slim based, Docker image intended to run as an Azure DevOps Self Hosted Agent for Terraform deployments.
- Azure CLI
- Powershell
- Terraform
- Azure DevOps Agent
Using docker
docker run \
-e AZDEVOPS_URL=https://myaccount.visualstudio.com \
-e AZDEVOPS_PAT=myToken \
-e AZDEVOPS_POOL=Default \
-e AZDEVOPS_AGNT=AgentName \
-e AZDEVOPS_WORKDIR=_work \
-v $(pwd)/work.b:/app/_work \
--name devopsagent \
-h devopsagent \
ghcr.io/peanutsguy/adoptUsing docker compose
services:
devopsagent:
image: ghcr.io/peanutsguy/adopt
environment:
- AZDEVOPS_URL=https://myaccount.visualstudio.com
- AZDEVOPS_PAT=myToken
- AZDEVOPS_POOL=Default
- AZDEVOPS_AGNT=AgentName
- AZDEVOPS_WORKDIR=_work
volumes:
- $(pwd)/work:/app/_work
| Variable | Description |
|---|---|
| AZDEVOPS_URL | The url of your Azure DevOps Organization |
| AZDEVOPS_PAT | Your Personal Access Token (PAT) |
| AZDEVOPS_POOL | The pool to which the agent will be added |
| AZDEVOPS_AGNT | Name the agent will use, which will be shown in Azure DevOps |
| AZDEVOPS_WORKDIR | Work directory where job data is stored. Defaults to _work under the root of the agent directory. The work directory is owned by a given agent and should not be shared between multiple agents. |