saikiranmothe / cookbook-pipeline

chef cookbook to setup cookbook/application testing pipelines with docker, jenkins and optionally test kitchen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cookbook-pipline cookbook

Install docker, jenkins and optionally test kitchen , berkshelf or foodcritic etc.. also setup up build/test pipelines for cookbook or any other application.

Requirements

For testing cookbook with docker and test kitchen change .kitchen.yml file of your cookbook to use kitchen-docker plugin, more information is available in the here and here

Usage

Use default recipe to set up docker, jenkins and create jobs baced on attributes.

quick test

use vagrant to test locally

issue command:

vagrant up

and browse to http://127.0.0.1:8080/ for access jenkins ui

Attributes

  • jobs

    • An array containing a Hash of cookbooks to be tested
    • Defaults to community cookbooks.
  • jobs[:name]

    • pipeline name
  • jobs[:build_steps]

    • build steps
  • jobs[:git_branch]

    • git repo path
  • git['user-name']

    • git user name , required in git plugin of jenkins
  • git['email']

    • git email , required in git plugin of jenkins
  • install_gems?

    • set this true to install gem defined in gems variable
    • default true
  • gems

    • specify gems to be installed in main ruby
    • default %w{foodcritic bundler rake kitchen-docker berkshelf test-kitchen}

Recipes

Author

Author:: sumit (timusga@gmail.com)

About

chef cookbook to setup cookbook/application testing pipelines with docker, jenkins and optionally test kitchen


Languages

Language:Ruby 77.1%Language:HTML 22.9%