Install Docker and related software.
Using Berkshelf, add the docker-simple
cookbook to your Berksfile.
cookbook 'docker-simple', github: 'logankoester/chef-docker-simple', branch: 'master'
Then run berks
to install it.
docker-simple::default
will simply install Docker.docker-simple::compose
will install Docker Compose.
Include docker-simple
in your run_list.
{
"run_list": [
"recipe[docker-simple::default]"
]
}
This cookbook uses the Foodcritic linter, ChefSpec for unit testing, and ServerSpec for integration testing via Test Kitchen with the kitchen-vagrant driver.
It's not as complicated as it sounds, but you will need to have Docker installed.
git clone git@github.com:logankoester/chef-docker-simple.git
cd chef-docker-simple
bundle install
bundle exec rake
This will run all of the tests once. While developing, run bundle exec guard start
and the relevant tests will run automatically when you save a file.
Copyright (c) 2015 Logan Koester. Released under the MIT license. See LICENSE
for details.