A sample skeleton project to test how TeamCity CI, Docker & Batect (created by TWer) work
This repo requires some environment setting as follows:
- A VM that runs TeamCity and its Agent
- A VM that runs Harbor as docker image repo
- K8S clastur
How did I do this: I use the following VMs running CentOS server in a PC using NAT network
- k8s-server 192.168.121.131
- k8s-node-01 192.168.121.132
- k8s-node-02 192.168.121.133
- tc-server 192.168.121.151
- harbor-server 192.168.121.161
To get TeamCity and Harbor accessable from other machines within my home network, I used the following port fowarding:
TeamCity server 192.168.121.151:8111 -> 192.168.1.107:8111 Harbor server 192.168.121.161:80 -> 192.168.1.107:8112
I also forwarder ssh ports to my home network.
I setup static IP for my PC (192.168.1.107) and all my VMs.
To use this project, follow steps below:
- Install Docker locally
- Run Docker Compose
docker-compose up -d
(To stop the server run docker-compose stop
)
- Go to
localhost:8111
and create TeamCity project - Add connection to GitHub and connect to project VCS root