Test Chef cookbooks with Docker containers

Kitchen Dokken is a provisioner to test cookbooks in Docker containers. It is very fast and efficient compared to cloud instances like AWS EC2s, Vagrant boxes, or VMWare virtual machines.

Currently, you can only test Linux cookbooks with Kitchen Dokken.

To generate a cookbook with the dokken provisioner use the –kitchen option

chef generate cookbook MY_COOKBOOK_NAME --kitchen dokken

The Kitchen Dokken GitHub repository contains more information at https://github.com/test-kitchen/kitchen-dokken

Sample kitchen.yml file with kitchen dokken provisioner at https://github.com/chef-cookbooks/sudo/blob/master/kitchen.dokken.yml

Webinar links at https://www.chef.io/webinars

Leave a comment

Leave a Reply