Install docker, jenkins and optionally test kitchen , berkshelf , foodcritic etc.. and setup up build/test pipelines for cookbook or any application.
Change .kitchen.yml file of your cookbook to use kitchen-docker plugin, more information is available in the here and here
Use default recipe to set up docker, jenkins and create jobs baced on attributes.
use vagrant to test locally
issue command:
vagrant up
and browse to http://127.0.0.1:8080/ for access jenkins ui
-
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
-
install_gems?
- specify gems to be installed in main ruby
- default %w{foodcritic bundler rake kitchen-docker berkshelf test-kitchen}
Author:: sumit ([email protected])