The default cookbook installs jenkins in a docker container and exposes it on port 80
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.delivery
.idea
attributes
recipes
spec
test/smoke/default
.gitignore
.kitchen.yml
Berksfile
LICENSE
README.md
chefignore
metadata.rb

README.md

Chef Cookbook Jenkins

The default cookbook installs jenkins in a docker container and exposes it on port 80

Requirements

Supported Platforms

  • Debian Stretch

Chef

  • Chef 13.1+

Cookbook Depdendencies

  • docker

Usage

Add the cookbook to your Berksfile:

cookbook 'chef.cookbook.jenkins', :github 'chef.cookbook.jenkins'

Add the cookbook to your runlist, e.g. in a role:

{
  "name": "default",
  "chef_type": "role",
  "json_class": "Chef::Role",
  "run_list": [
	  "recipe[chef.cookbook.jenkins]"
  ]
}

Attributes

  • default['chef.cookbook.jenkins']['ports']: The ports for the container, default: ['80:8080']
  • default['chef.cookbook.jenkins']['timeout']: The timeout when running the container, default: 60
  • default['chef.cookbook.jenkins']['tag']: The tag of the jenkins image, default: 'latest'