Sign inSign up

argutec/azuredevops-agent

By argutec

•Updated 11 months ago

Microsoft's AzureDevops server agent packaged in docker container.

Image
0

2.0K

argutec/azuredevops-agent repository overview

⁠Environment variables

NameDescription
AZP_URLURL of your Azure DevOps server.
AZP_ACCOUNTAccount that will be used to connect to Azure DevOps server. It must have appropriate permissions to modify requested agent pool - either being aministrator of said pool or by being server administrator.
AZP_TOKENPAT token for account specified in AZP_ACCOUNT.
AZP_AGENT_NAMEName of the new agent that will be reported to Azure DevOps server.
AZP_POOLPool that the agent will be registered to.
AZP_WORKRoot work folder (inside the docker image, you can mount it to host in case you need to share it with other docker image).

⁠Example docker-compose.yml

version: '3'
services:
	agent:
		image: argutec/azuredevops-agent:latest
		environment:
			AZP_URL: [https://yourserver.com]
			AZP_ACCOUNT: [buildservice-account]
			AZP_TOKEN: [PAT_TOKEN]
			AZP_AGENT_NAME: [build-agent-01]
			AZP_POOL: [build-pool]
			AZP_WORK: [/_work]
# In case you need to use docker commands in your agent's workload
		volumes:
			- /var/run/docker.sock:/var/run/docker.sock  

⁠Docker commands in agent's workload

In case you need to use another docker image or docker command during your build/release process, you can share docker socket of hosts image and run your docker commands on host. If you need to share your files with another container, you have to share folders on both containers to host system. More on this can be found in this article https://itnext.io/docker-in-docker-521958d34efd⁠.

In example docker-compose.yml in this document there is already docker socket shared.

⁠Revisions

VersionDateDescription
1.0.0.12019-09-17Added zip/unzip support.
1.0.0.02019-09-12First version.

Tag summary

Content type

Image

Digest

sha256:cf21a41a5…

Size

411.5 MB

Last updated

11 months ago

docker pull argutec/azuredevops-agent