Skip to content

JetBrains/teamcity-docker-server

Repository files navigation

official JetBrains project jetbrains/teamcity-server

DEPRECATED TeamCity Server Image Dockerfile

⛔ This repository is no longer supported, please consider usingteamcity-docker-imagesinstead.

This project contains the Dockerfiles and all necessary scripts to build the Linux and Windows Docker images and run a TeamCity server inside the container.

You can pull the ready-to-use image from the Docker Hub repository

docker pull jetbrains/teamcity-server

If you need to build your own image, you need to perform the following:

  1. On Unix extractTeamCity.tar.gzof any version you'd like to use into thedist/teamcityfolder. In the same directory where the Dockerfile is placed, run

    mkdir dist
    tar zxf TeamCity-<version>.tar.gz -C dist/
    mv dist/TeamCity dist/teamcity
    

    On Windows just putTeamCity.tar.gzinto the repository root.

  2. Run thedocker buildcommand:

    docker build -t teamcity-server
    

    On Windows just executebuild.ps1powershell script.

If you want to extend this image with your own setup scripts, you can place them in/servicesand therun-services.sh script will run them before starting TeamCity server. You can add your scripts with aCOPYinstruction in the Dockerfile, or better yet, in a new image based on this one:

FROMjetbrains/teamcity-server
COPYmy-special-setup-script.sh /services/

See ourdetailed instructionson how to use the image in the Docker Hub repository.