Adding TeamCity Stack to the Rancher (#254)

* Adding support for database auto creation

* Creation v0.8.44 for auto-database-creation

* Update config.yml

* Fixing syntax

* Fixing syntax

* Update

* Fixing uuid for gogs-1

* Create README.md

* Delete README.md

* Create README.md

* Add files via upload

* Create docker-compose.yml

* Create rancher-compose.yml

* Create config.yml

* Update docker-compose.yml

* Update README.md

* Initial TeamCity commit

* Addin variable for postgress_container

* Addin variable for postgress_container

* Setting Internal Docker port for Agents

* Fix for Rancher autoselect

* Syntax correction

* Adding details to the Readme

* Update rancher-compose.yml

* Fixing vocabulary

* Adding support for autoscale

* Adding support for autoscale

* Adding support for autoscale

* Adding Sidekicks

Enabling Sidekicks for teamcity-server and postgress services with shared working wolumes. This will help with easy upgrades of both containers.

* Added info about Sidekicks.

* fix

* Reverting newer version of goog

* Adding back missing category
This commit is contained in:
Mateusz Trojak 2016-09-06 19:19:00 +02:00 committed by Bill Maxwell
parent f114a19455
commit 9820dabeee
5 changed files with 139 additions and 0 deletions

View File

@ -0,0 +1,49 @@
teamcity-data:
image: busybox
tty: true
volumes:
- /var/lib/teamcity
teamcity-server:
image: sjoerdmulder/teamcity:latest
ports:
- ${http_port}:8111
links:
- postgres:${postgress_container}
environment:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
labels:
io.rancher.sidekicks: teamcity-data
volumes_from:
- teamcity-data
postgres-data:
image: busybox
tty: true
volumes:
- ${postgres_data}
postgres:
image: postgres:latest
ports:
- ${postgress_port}:5432
environment:
PGDATA: ${postgres_data}
POSTGRES_DB: ${postgres_db}
POSTGRES_USER: ${postgres_user}
POSTGRES_PASSWORD: ${postgres_password}
tty: true
stdin_open: true
labels:
io.rancher.sidekicks: postgres-data
volumes_from:
- postgres-data
teamcity-agent:
image: sjoerdmulder/teamcity-agent:latest
links:
- teamcity-server:teamcity-server
environment:
TEAMCITY_SERVER: http://teamcity-server:8111

View File

@ -0,0 +1,71 @@
.catalog:
name: "TeamCity"
version: "v0.0.1"
description: "TeamCity Server"
uuid: teamcity-0
minimum_rancher_version: v0.51.0
questions:
- variable: http_port
description: "HTTP port to access TeamCity Server UI"
label: "TeamCity HTTP Port"
required: true
default: "8111"
type: "int"
- variable: scale
description: "Number of TeamCity Agents"
label: "Number of TeamCity Agents"
required: true
default: "1"
type: "int"
- variable: postgress_container
description: "Define a linked postgress container name"
label: "Postgres Container"
required: true
default: "db"
type: "string"
- variable: postgress_port
description: "Port for Postgres"
label: "Postgres Port"
required: true
default: "5432"
type: "int"
- variable: postgres_data
description: "Postgres Data Folder"
label: "Postgres Data"
required: true
default: "/var/lib/postgresql/data/pgdata"
type: "string"
- variable: postgres_db
description: "Postgres Database"
label: "Postgres Database"
required: true
default: "teamcity"
type: "string"
- variable: postgres_user
description: "Postgres User"
label: "Postgres User"
required: true
default: "teamcity"
type: "string"
- variable: postgres_password
description: "Postgres Password"
label: "Postgres Password"
required: true
default: "teamcity"
type: "string"
- variable: http_proxy
description: "In case you are at corporate network, setup http_proxy variable if needed"
label: "http_proxy"
required: false
default: ""
type: "string"
- variable: https_proxy
description: "In case you are at corporate network, setup https_proxy variable if needed"
label: "https_proxy"
required: false
default: ""
type: "string"
teamcity-agent:
scale: ${scale}
retain_ip: true

View File

@ -0,0 +1,14 @@
## What is inside TeamCity Stack?
* TeamCity Server
* Postgres Database
* Scalable TeamCity Agents
## Info
* In default TeamCity stack will create "teamcity" postgres database with teamcity user.
* Additional variables `http_proxy` and `https_proxy` are included, which can be helpfull in some cases.
* Once TeamCity will start, make sure you setup correct information in setup page.
* For easy upgrades there are sidekicks for both postgress and teamcity-server with dedicated storage.
## TeamCity Agents
TeamCity Agents will start automatically and connect to the TeamCity Server.
Agents should be available in TeamCity Server in about 5 minutes after stack's start.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@ -0,0 +1,5 @@
name: TeamCity
description: |
TeamCity — Your 24/7 Build Engineer
version: v0.0.1
category: CI