suhas92 / AzureDevOps-agents

Images for self-hosted DevOps agents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AzureDevOps-agents

Images 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.

Credit

Most of the bash scripts in this repository are adopted from the official Hosted images prepared by Microsoft, with minor modifications, from this repository: https://github.com/microsoft/azure-pipelines-image-generation/; these images feature a modified start.sh script that supports caching of tools and agent files across restarts, as described in the post linked above.

Using images from DockerHub

These images have been published to my DockerHub repositories, and can be fetched from there.

docker pull robertoprevato/devopsubuntu16.04

docker pull robertoprevato/devopsubuntu16.04-python

docker pull robertoprevato/devopsubuntu16.04-docker

Building images

You can use the provided build.sh file to create images on your host. Otherwise, first create the base image:

# from Ubuntu 16.04-base:
docker build -t devopsagentubuntu:16.04 .

Then create other images that depend on it.

To run the images

Create an access token in Azure DevOps, then:

docker run -e AZP_URL=<YOUR-ORGANIZATION-URL> \
-e AZP_TOKEN=<YOUR-TOKEN> \
-e AZP_AGENT_NAME='Self-hosted Ubuntu 16.04' devopsubuntu16.04:latest

# or, from inside the container, in /azp:
AZP_URL=<YOUR-ORGANIZATION-URL> \
AZP_TOKEN=<YOUR-TOKEN> \
AZP_AGENT_NAME='Self-hosted Ubuntu 16.04' ./start.sh

About

Images for self-hosted DevOps agents

License:MIT License


Languages

Language:Shell 94.5%Language:Dockerfile 5.5%