

Here we select Proceed and go to the next screen. Warning: it may take a few minutes to launch the portal for the first time. Once started, we go to our TeamCity server available at: After going to this address you should see the following screen: Pierwszy ekran TeamCity Launching containers is accomplished with the command: > docker-compose up -d In our configuration, we have directories shared with the system (subdirectories in the teamcity directory). volumes – specifies volumes that are used by the container.container_name – the name of our container.In our configuration, we share ports 8111 (www portal) ports – a list of ports that we make available outside the container.image – the docker image we want to use on our server.The most important configuration parameters are: In our case it will be a TeamCity server along with one agent (a separate module to run CI/CD jobs). SERVER_URL= This configuration defines what containers we want to run. In the next step, we create a docker-compose.yml file with the following contents: version: "2.1" > sudo chown -R 1000:1000 agent_conf Installing TeamCity This is because the server and agent is running in a container as a user without root privileges. In the next step, we still need to change the permissions of the above directories. In the next step, we will create three directories where the server and agent will save their configuration and logs. We will start working on the installation by creating a dedicated directory where we will store TeamCity data and configuration.
#TEAMCITY AGENT DOCKER HOW TO#
You can find a description of these tools on the website: How to install Jenkins using Docker Compose? Preparations for the launch To find out what Docker Compose is, go to the article: How to install Jenkins using Docker Compose? Tools requiredīefore starting work, prepare the required tools. In the second case, we can use the free version also in commercial projects but we have a few restrictions, such as the maximum number of builds or agents. The first version of the server was made available already in 2006 and is available both as a commercial and a free version. TeamCity is a continuous integration and delivery (CI/CD) server created by JetBrains, a company known for its developer tools such as Resharper or IntelliJ IDEA. In this article I will show you how to install a CI/CD tool and how to prepare the process of building and testing a simple Maven-based project.
#TEAMCITY AGENT DOCKER SERIES#
This article is part of a series showing how to get started with popular CI/CD tools. Today I’m going to show you how you can quickly start up a TeamCity server and run your first CI process in it.
