A Docker image that installs TeamCity continuous integration and build management server.
360
A Docker image that installs TeamCity continuous integration and build management server using the binaries found at jetbrains.com. It is built on top of the official debian (jessie) base image plus the java 8 run time environment.
The image sets up the TeamCity server to
When running TeamCity as a docker container, it is highly recommended you separate (externalise) the data directory (see Data Directory) and use a different container or externally hosted database.
Install Docker.
Download automated build from public Docker Hub Registry:
docker pull richardkdrew/teamcity
OR
Build a local image from the Dockerfile source:
docker build -t="richardkdrew/teamcity" github.com/richardkdrew/docker-teamcity
You can run a container from this image (in it's simplest form), where the data directory is internal to the container and you intend to use the local HSQLDB database, using the following command;
docker run -d --name teamcity -p 0.0.0.0:8111:8111 richardkdrew/teamcity
However, I would recommend externalising the data directory (exposed by this image as a volume - /var/lib/teamcity).
Using a folder on the host mounted as the data directory volume with the following command;
docker run -d --name teamcity -p 0.0.0.0:8111:8111 -v /path-on-my-machine/teamcity-data:/var/lib/teamcity richardkdrew/teamcity
Where /path-on-my-machine/teamcity-data is the folder on the host and /var/lib/teamcity is the location in the container it is mapped to (see Docker Volumes for more info).
OR
Using a data-only container as the data directory volume with the following command;
docker run -d --name teamcity -p 0.0.0.0:8111:8111 --volumes-from teamcity-data richardkdrew/teamcity
Where teamcity-data is the name of the data-only container. This assumes you have already set up a data-only container i.e.
docker run --name teamcity-data -v /var/lib/teamcity debian:jessie /bin/false
To run a build using TeamCity server you will need to be running at least one Build Agent.
Content type
Image
Digest
sha256:604c9ea0b…
Size
754 MB
Last updated
almost 11 years ago
docker pull richardkdrew/teamcity