{"id":15645213,"url":"https://github.com/robertoprevato/azuredevops-agents","last_synced_at":"2025-04-30T11:11:17.008Z","repository":{"id":52196425,"uuid":"197467518","full_name":"RobertoPrevato/AzureDevOps-agents","owner":"RobertoPrevato","description":"Images for self-hosted DevOps agents","archived":false,"fork":false,"pushed_at":"2021-05-05T18:52:52.000Z","size":44,"stargazers_count":62,"open_issues_count":2,"forks_count":47,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-19T00:42:18.259Z","etag":null,"topics":["azure","devops","devops-agents","pipelines"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobertoPrevato.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-17T21:47:03.000Z","updated_at":"2024-11-27T20:00:18.000Z","dependencies_parsed_at":"2022-09-06T05:41:46.503Z","dependency_job_id":null,"html_url":"https://github.com/RobertoPrevato/AzureDevOps-agents","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertoPrevato%2FAzureDevOps-agents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertoPrevato%2FAzureDevOps-agents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertoPrevato%2FAzureDevOps-agents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertoPrevato%2FAzureDevOps-agents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobertoPrevato","download_url":"https://codeload.github.com/RobertoPrevato/AzureDevOps-agents/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251687004,"owners_count":21627509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","devops","devops-agents","pipelines"],"created_at":"2024-10-03T12:05:10.067Z","updated_at":"2025-04-30T11:11:16.972Z","avatar_url":"https://github.com/RobertoPrevato.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Validate Docker Files](https://github.com/RobertoPrevato/AzureDevOps-agents/workflows/Validate%20Docker%20Files/badge.svg)](https://github.com/RobertoPrevato/AzureDevOps-agents/actions?query=workflow%3A\"Validate+Docker+Files\")\n\n# AzureDevOps-agents\nImages for self-hosted DevOps agents running in Docker. The preparation of these images has been described in this post: [Self-hosted Azure DevOps agents running in Docker](https://robertoprevato.github.io/Self-hosted-Azure-DevOps-agents-running-in-Docker/).\n\n## Credit\nMost of the bash scripts in this repository are adopted from the official Hosted images prepared by Microsoft, with minor modifications, taken from this repository: [https://github.com/microsoft/azure-pipelines-image-generation/](https://github.com/microsoft/azure-pipelines-image-generation/).\n\nThe images in this repository feature a modified `start.sh` script that supports caching of tools and agent files across restarts, as described in the blog post linked above.\n\n## Building images\nYou can use the provided `build.sh` file to create images on your host.\nOtherwise, first create the base image:\n\n```\n# from Ubuntu 18.04-base:\ndocker build -t devopsagentubuntu:18.04 .\n```\n\nThen create other images that depend on it.\n\n## Composing tools\nIt is possible to create an agent with several tools, by editing the `FROM` statement as desired, in the provided Dockerfiles. For example, it is possible to compose an agent with Python, .NET Core, and PowerShell Core by first building the `python` image on top of the `base` image; then building the `dotnet` image on top of the `python` image.\n\nThis technique can be used in build pipelines, to compose an agent with all desired tools.\n\n## To run the images\nCreate an access token in Azure DevOps, then:\n\n```bash\n\ndocker run -e AZP_URL=\u003cYOUR-ORGANIZATION-URL\u003e \\\n-e AZP_TOKEN=\u003cYOUR-TOKEN\u003e \\\n-e AZP_AGENT_NAME='Self-hosted Ubuntu 18.04' devopsubuntu18.04:latest\n\n# or, from inside the container, in /azp:\nAZP_URL=\u003cYOUR-ORGANIZATION-URL\u003e \\\nAZP_TOKEN=\u003cYOUR-TOKEN\u003e \\\nAZP_AGENT_NAME='Self-hosted Ubuntu 18.04' ./start.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertoprevato%2Fazuredevops-agents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertoprevato%2Fazuredevops-agents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertoprevato%2Fazuredevops-agents/lists"}