There are two ways of creating a chef environment and tests cookbooks depending on what driver to use:
- Vagrant
- Virtualbox
- Depependencies:
bundle config set --local without 'dokken'
bundle install
- Docker
- Depependencies:
bundle config set --local without 'vagrant'
bundle install
Once you select the driver and install all the dependencies, you can create your first node by running the following Kitchen CI commands:
kitchen list
: list all kitchen instances in the form of <suite_name>-<platform_name>kitchen create <suite_name>-<platform_name>
: create a <platform_name> node without cookbookskitchen converge <suite_name>-<platform_name>
: run cookbooks declared in <suite_name> inside <platform_name> nodekitchen verify <suite_name>-<platform_name>
: run tests in specified instancekitchen destroy <suite_name>-<platform_name>
: destroy specified instancekitchen login <suite_name>-<platform_name>
: log in to specified instance
By defaul, kitchen will look for a [.]kitchen.y[a]ml
file.
In case you want to use dokken as your driver, you need to specify kitchen.dokken.yml file as the default kitchen configuration file by overriding KITCHEN_YAML env variable, e.g.:
KITCHEN_YAML="kitchen.dokken.yml" kitchen list