Skip to content

Instantly share code, notes, and snippets.

@joshuamcdo
Created March 27, 2015 16:12
Show Gist options
  • Save joshuamcdo/15893001d69bc7c8d4d0 to your computer and use it in GitHub Desktop.
Save joshuamcdo/15893001d69bc7c8d4d0 to your computer and use it in GitHub Desktop.
Directory layout
./Berksfile
./owdocker
./owdocker/recipes
./owdocker/recipes/metadata.rb
./owdocker/recipes/owdocker_docker-image-deploy.rb
./owdocker/recipes/owdocker_install.rb
./owdocker/templates
./owdocker/templates/default
./owdocker/templates/default/docker_config.erb
./README.md
@rmoriz
Copy link

rmoriz commented Mar 27, 2015

1.)

mv ./owdocker/recipes/metadata.rb ./owdocker/metadata.rb

(make sure it has a name attribute and it's owdocker)

2.)

berksfile:

source 'https://supermarket.chef.io'

cookbook 'owdocker', path: 'owdocker' 

then do berks install and see if it picks up all your dependencies

@joshuamcdo
Copy link
Author

berks install
Resolving cookbook dependencies...
Fetching 'owdocker' from source at owdocker
Fetching cookbook index from https://supermarket.getchef.com...
Installing apt (2.7.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io/api/v1)
Installing build-essential (2.2.2) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io/api/v1)
Using device-mapper (0.1.0)
Using dmg (2.2.2)
Using aufs (0.1.1)
Installing docker (0.36.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io/api/v1)
Using chef_handler (1.1.6)
Using dpkg_autostart (0.1.12)
Using git (4.1.0)
Using golang (1.5.0)
Using homebrew (1.12.0)
Using iptables (0.14.1)
Installing iptables-ng (2.2.5) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io/api/v1)
Installing modules (0.2.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io/api/v1)
Installing lxc (2.0.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io/api/v1)
Installing ohai (2.0.1) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io/api/v1)
Using owdocker (0.0.1) from source at owdocker
Installing polipo (0.1.0) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io/api/v1)
Installing runit (1.5.18) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io/api/v1)
Installing sysctl (0.6.2) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io/api/v1)
Installing windows (1.34.8) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io/api/v1)
Installing yum (3.5.3) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io/api/v1)
Installing yum-epel (0.3.6) from https://supermarket.getchef.com ([opscode] https://supermarket.chef.io/api/v1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment