Skip to content

hschaeidt/teamcity-cookbook

Repository files navigation

TeamCity Cookbook

Build Status

Requirements

  • java

Attributes

Used by both recipes:

  • node["teamcity_server"]["version"] - TeamCity version. Default is 8.1.1.
  • node["teamcity_server"]["base_url"] - Base URL for TeamCity packages. Default is http://download.jetbrains.com/teamcity/. This value may also use FTP (ftp://) or local (file://) (e.g., a shared folder).

Used by Build Agent:

  • node["teamcity_server"]["build_agent"]["server"] - TeamCity server address. Default value is nil. If value isn't changed then server is fist node with recipe teamcity_server::server.
  • node["teamcity_server"]["build_agent"]["name"] - Build Agent name. Default is nil.
  • node["teamcity_server"]["build_agent"]["params"] - Build Agent parameters. Default is {}.

Used by Sever:

  • node["teamcity_server"]["server"]["address"] - Address for listening. Default is 0.0.0.0.
  • node["teamcity_server"]["server"]["port"] — Port for listening. Default is 8111.

Recipes

This cookbook provides two recipes:

  • build_agent.rb: Installs TeamCity Build Agent.
  • server.rb: Installs TeamCity Server.
  • default.rb: Installs TeamCity Server and TeamCity Build Agent.

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (i.e. add-new-recipe)
  3. Write you change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request

Developer requirements

Required

The Chef-DK comes with all relevant chef tools, like berkshelf.

Docker

$ #cookbooks will be vendored in ./berks-cookbooks
$ berks vendor
$
$ #create the docker image
$ packer build packer-docker.json

Run it: $ docker run -v --publish 8111:8111 hschaeidt/teamcity

Goto: http://localhost:8111

Vagrant

  • virtualbox >= 4.2
  • vagrant >= 1.5
  • vagrant plugin vagrant-berkshelf >= 2.0.1
  • vagrant plugin vagrant-omnibus >= 1.4.1

To install the vagrant plugins on their latest version: $ vagrant plugin install vagrant-berkshelf $ vagrant plugin install vagrant-omnibus

To start the machine: $ vagrant up

Goto: http://localhost:8111

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published