Install TeamCity using Docker
1.1 downloadteamcity-server
The mirror
docker pull jetbrains/teamcity-server
Copy the code
1.2 Creating a Data Mount Directory
mkdir -p /usr/local/docker/teamcity/datadir
mkdir -p /usr/local/docker/teamcity/logs
chmod 777 /usr/local/docker/teamcity/datadir
chmod 777 /usr/local/docker/teamcity/logs
Copy the code
1.3 runteamcity-server
service
docker run -it --name teamcity-server-instance -d \
-v /usr/local/docker/teamcity/datadir:/data/teamcity_server/datadir \
-v /usr/local/docker/teamcity/logs:/opt/teamcity/logs \
-p 8111:8111 \
jetbrains/teamcity-server
Copy the code
1.4 accessteamcity-server
service
Teamcity-server access address: 192.168.79.128:8111. Click Proceed to Proceed
Select the database where you want to store your data (some of TeamCity’s build history, user information, build results, etc., need to be on a relational database).
I select mysql to store here, first click Download JDBC driver process may need to wait, then fill in the database connection information, click Proceed to the next step
It should be noted here that the local Windows mysql database I use has not been set up for external remote connection, so it needs to be set up for external remote connection
use mysql
GRANT ALL PRIVILEGES ON*. *TO 'root'@The '%' IDENTIFIED BY 'root' WITH GRANT OPTION;
flush privileges;
Copy the code
Scroll to the bottom of the page, check the agreement, and click Continue to proceed to the next step
Setting an Administrator Account
The next step is OK, into the system home page