Skip to content

orsenthil/teamcity

Repository files navigation

TeamCity Setup

This repository contains scripts to set up and configure TeamCity server and agent in a Docker environment.

Security Notes

Before proceeding with the setup, please note:

  1. Sensitive Information:

    • Replace all placeholder values (e.g., your-domain.com, your-email@example.com) with your actual values
  2. SSL Certificates:

    • SSL certificates and keys are automatically generated during setup
  3. SSH Keys:

    • SSH keys are used for secure access to the server

Setup Instructions

1. Host Configuration

Run the host setup script to install and configure necessary dependencies:

sudo ./setup-host.sh

This script will:

  • Install required packages (Go, Python, Java, Docker)
  • Configure system PATH
  • Set up SSH keys
  • Install and configure Docker

2. TeamCity Server Setup

  1. Configure the domain in setup-teamcity.sh:

    • Update DOMAIN variable with your domain
    • Update EMAIL variable with your email (for SSL)
  2. Run the TeamCity server setup:

sudo ./setup-teamcity.sh

This will:

  • Set up TeamCity server using Docker Compose
  • Configure Nginx as a reverse proxy
  • Create and enable systemd service
  • Start TeamCity server

3. SSL Configuration

To enable HTTPS:

sudo ./setup-ssl.sh

4. TeamCity Agent Setup

  1. Update the TeamCity URL in setup-teamcity-agent.sh if needed
  2. Run the agent setup:
sudo ./setup-teamcity-agent.sh

This will:

  • Download and install the TeamCity agent
  • Configure the agent to connect to your TeamCity server
  • Set up and enable systemd service
  • Start the agent

Maintenance

  • TeamCity Server logs: docker compose logs -f
  • Agent logs: journalctl -u teamcity-agent.service -f
  • Restart services:
    • Server: sudo systemctl restart teamcity.service
    • Agent: sudo systemctl restart teamcity-agent.service

About

Configure teamcity server and agent

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages