jquintus / DockerTeamCitySpike

Playing around with setting up a TeamCity agent in a docker container
MIT License
0 stars 0 forks source link

Docker

Compose

Prep:

mkdir .\teamcity-server\logs
mkdir .\teamcity-server\data

mkdir .\teamcity-agent01\conf
mkdir .\teamcity-agent01\work

mkdir .\teamcity-agent02\conf
mkdir .\teamcity-agent02\work

Agent Docker File

cd Agent
docker build -t tc-agent:latest -m 2GB .
docker run -it tc-agent
  1. Go to the agent folder
  2. Use docker build to build the image
  3. Use docker run to run the image

For the docker file, I copied the example from docs.microsoft. I pretty much just got lucky that they were doing the same thing I needed to do.

If it was anything more complicated, I would have had to look into getting chocolatey installed into the contianer and then using that to install anything else I need.

sample-src

The sample-src folder contains a simple sample .net framework C# solution and a cake build script. This is the repo that will be build from our Team City deployment.