juanesech
3/28/2018 - 3:10 AM

Dockerfile vsts-agent

vsts agent with:

  • Docker.io
  • AWS Cli
  • Python3

Run Sample: docker run --name=vsts-agent
-v /var/run/docker.sock:/var/run/docker.sock
-e VSTS_ACCOUNT=account
-e VSTS_TOKEN=fg47khaijuwdx4vfeiobrn2aeceofn2zhodwo5dmkecxktk67qwg
-e VSTS_AGENT="$(hostname)-agent"
-e VSTS_POOL=agpool
-itd vsts-agent

FROM microsoft/vsts-agent

#Install aws cli
RUN apt-get update; apt-get install python-pip -y
RUN pip install --upgrade pip
RUN pip install setuptools
RUN pip install awscli --upgrade --user

#Install docker
RUN apt-get install docker.io -y