Skip to content

Instantly share code, notes, and snippets.

@jfollmann
Created June 3, 2019 14:35
Show Gist options
  • Save jfollmann/56e935e63b74375b25f813699737ab69 to your computer and use it in GitHub Desktop.
Save jfollmann/56e935e63b74375b25f813699737ab69 to your computer and use it in GitHub Desktop.
Custom VSTS Agent
docker build -t [REGISTRY_URL] .
docker push [REGISTRY_URL]
version: "3"
services:
mpn-vsts-agent:
restart: always
image: docker.totvs.io/totvsmpn/mpn-vsts-agent
environment:
- VSTS_ACCOUNT=${VSTS_ACCOUNT}
- VSTS_TOKEN=${VSTS_TOKEN}
- VSTS_POOL=${VSTS_POOL}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_REGION=${AWS_REGION}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
#UP: docker-compose up -d --scale mpn-vsts-agent=5
FROM microsoft/vsts-agent:ubuntu-16.04-docker-18.06.1-ce
ENV NODE_VERSION 8
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash -
RUN apt-get install -y nodejs
RUN node -v
RUN npm -v
RUN apt-get install -y ssh
RUN wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
RUN dpkg -i packages-microsoft-prod.deb
RUN apt-get install apt-transport-https && apt-get update
RUN apt-get install dotnet-sdk-2.2
RUN dotnet --info
RUN apt-get install python3
RUN apt-get install python3-pip
RUN apt-get install python3-setuptools
RUN pip3 install --upgrade pip
RUN pip3 --no-cache-dir install --upgrade awscli
RUN aws --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment