Skip to content

Instantly share code, notes, and snippets.

@jp
Created April 11, 2015 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jp/4668f32da8bb89aeb820 to your computer and use it in GitHub Desktop.
Save jp/4668f32da8bb89aeb820 to your computer and use it in GitHub Desktop.
require 'chef/provisioning/docker_driver'
with_chef_server "https://api.opscode.com/organizations/ossom",
:client_name => Chef::Config[:node_name],
:signing_key_filename => Chef::Config[:client_key]
machine_image 'web_server' do
recipe 'nginx'
machine_options :docker_options => {
:base_image => {
:name => 'ubuntu',
:repository => 'ubuntu',
:tag => '14.04'
}
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment