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
To run: docker-compose up -d
To shutdown docker-compose down
Server will be available on http://127.0.0.1:8111/
Login info:
username
password
cd Agent
docker build -t tc-agent:latest -m 2GB .
docker run -it tc-agent
docker build
to build the imagedocker run
to run the imageFor 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.
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.