lenisha / vsts-agent-infrastructure

docker image and terraform install for vsts agent with packer,terraform,ansible tools

Home Page:https://open.microsoft.com/2018/05/22/how-to-create-vsts-agent-azure-aci-terraform/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VSTS Agent Docker Image

This repository contains Dockerfile definitions for lenisha/vsts-agent-infrastructure Docker images.

Downloads from Docker Hub Stars on Docker Hub

Docker image for VSTS Agent with infrastrucure tools installed

ENV TERRAFORM_VERSION 0.11.10
ENV PACKER_VERSION 1.3.2
ENV ANSIBLE_VERSION 2.0.0.2

How to use these image

VSTS agents must be started with account connection information, which is provided through two environment variables:

  • VSTS_ACCOUNT: the name of the Visual Studio account
  • VSTS_TOKEN: a personal access token (PAT) for the Visual Studio account that has been given at least the Agent Pools (read, manage) scope.
  • VSTS_AGENT: the name of the agent (default: "$(hostname)")
  • VSTS_POOL: the name of the agent pool (default: "Default")

To run the default VSTS agent image for a specific Visual Studio account:

docker run \
  -e VSTS_ACCOUNT=<name> \
  -e VSTS_TOKEN=<pat> \
  -e VSTS_AGENT='$(hostname)-agent' \
  -e VSTS_POOL=mypool \
  -it lenisha/vsts-agent-infrastructure

Notes

TODO: add automatic updates when new release posted

Other tools installed on VSTS image are listed: vsts agent tools

About

docker image and terraform install for vsts agent with packer,terraform,ansible tools

https://open.microsoft.com/2018/05/22/how-to-create-vsts-agent-azure-aci-terraform/


Languages

Language:HCL 54.5%Language:Dockerfile 39.5%Language:Shell 6.0%