Skip to content

Instantly share code, notes, and snippets.

@naoya
Created June 18, 2013 10:44
Show Gist options
  • Save naoya/5804353 to your computer and use it in GitHub Desktop.
Save naoya/5804353 to your computer and use it in GitHub Desktop.
FROM centos
RUN curl -L http://www.opscode.com/chef/install.sh | bash
ADD ./chef-repo /root/chef-repo
RUN cd /root/chef-repo; chef-solo -c solo.rb -j ./nodes/localhost.json
{
"run_list" : [
"recipe[yum::epel]",
"recipe[nginx]"
]
}
file_cache_path "/tmp/chef-solo"
cookbook_path ["/root/chef-repo/cookbooks", "/root/chef-repo/site-cookbooks"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment