TeamCity Server on Mac
Setting up a TeamCity Server on Mac as a personal agent was very easy.
Run TeamCity server
#!/bin/bash PATH_TO_DATA_DIR=/Users/senthil/teamcity/data PATH_TO_LOGS_DIR=/Users/senthil/teamcity/logs PORT_HOST=8111 docker run -it --name teamcity-server-instance \ -v $PATH_TO_DATA_DIR:/data/teamcity_server/datadir \ -v $PATH_TO_LOGS_DIR:/opt/teamcity/logs \ -p $PORT_HOST:8111 \ jetbrains/teamcity-server
The teamcity server is accessible now at http://127.0.0.1:8111
Setup a reverse proxy to access that locally.
$ cat /etc/apache2/vhosts/teamcity.local.conf <VirtualHost *:80> ProxyPreserveHost On ServerName teamcity.local ProxyPass / http://127.0.0.1:8111/ ProxyPassReverse / http://127.0.0.1:8111/ LogLevel debug </VirtualHost>
Setup your /etc/host to point http://teamcity.local to 127.0.0.1:8111