A project I am putting together to see what it looks like to build a machine using chef and docker together
Foodcritic Analysis:
cd chef
bundle install
bundle exec foodcritic -f all site-cookbooks/
Kitchen Tests:
cd chef
bundle install
# List the currently running images
bundle exec kitchen list
# Login to one of the boxes that has been converged. Used for manual testing.
kitchen login blog-full-raring64
# Run chef and get a VM setup. Note that this will not tear down the VM
# and should be used for development.
bundle exec kitchen converge [blog-full-raring64]
# Run the tests for in the kitchen. Note that this will not tear down the VM
# and should be used for development.
bundle exec kitchen verify [blog-full-raring64]
# Destroy test instances that may be hanging around from the above commands
bundle exec kitchen destroy
# Run all tests and destroy the image after complete. Without the --destroy
# flag the vms would not get torn down on a test failure. Used mostly in
# CI environments
bundle exec kitchen test --destroy