Skip to content

Deploys production-ready TeamCity to your machine using docker.

Notifications You must be signed in to change notification settings

cscart/teamcity-infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jetbrains TeamCity environment

Deploys production-ready TeamCity to your machine using docker.

Webhook CI Proxy

Serves as a middleware for TeamCity Commit Hooks Plugin.

Listens for GitHub webhook payload, fetches pull request status via GitHub API and then re-sends webhook payload to TeamCity itself.

Pull requests prefetch is required to update PR's merge branch and get latest commits when checking VCS roots for changes. (see https://youtrack.jetbrains.com/issue/TW-53108 for details).

Pre-requisites

  • Docker
  • docker-compose

How to build and run

  1. $ cd compose/ci/

  2. $ cp .env.dist .env

  3. Modify environment variables at .env to fit your needs.

    ${WEBHOOK_CI_PROXY_ACCESS_TOKEN} is used for Webhook CI Proxy.

    You can obtain a token from https://github.com/settings/tokens.

    {WEBHOOK_CI_PROXY_CI_URL} is the interal address of a TeamCity server. Default one is http://teamcity-server:8111.

  4. Build images:

    $ docker-compose build
    
  5. Run it:

    Teamcity only with selfsinged SSL
    $ docker-compose -f general.yml -f teamcity.yml -f teamcity_volumes.yml -f proxy_teamcity_local.yml up -d
    
    Teamcity and Webhook CI Proxy with selfsinged SSL
    $ docker-compose -f general.yml -f teamcity.yml -f teamcity_volumes.yml -f webhook.yml -f proxy_all_local.yml up -d
    
    Teamcity only with SSL (acme.sh)
    $ docker-compose -f general.yml -f teamcity.yml -f teamcity_volumes.yml -f proxy_teamcity.yml up -d
    
    Teamcity and Webhook CI Proxy with SSL (acme.sh)
    $ docker-compose -f general.yml -f teamcity.yml -f teamcity_volumes.yml -f webhook.yml -f proxy_all.yml up -d
    

About

Deploys production-ready TeamCity to your machine using docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published