Skip to content

Instantly share code, notes, and snippets.

@jgensler8
Last active July 2, 2016 20:09
Show Gist options
  • Save jgensler8/1318db53b2ecaf53e45c1351d1b985c3 to your computer and use it in GitHub Desktop.
Save jgensler8/1318db53b2ecaf53e45c1351d1b985c3 to your computer and use it in GitHub Desktop.
“Templating” a Deployment Process locally with Otto’s Custom app type
application {
name = "DockerOnCoreOS"
type = "custom"
}
customization {
dev_vagrantfile = "./coreos-vagrant/Vagrantfile"
}
$shared_folders = {'../' => '/tmp/app'}
$shared_folders.each_with_index do |(host_folder, guest_folder), index|
config.vm.synced_folder host_folder.to_s, guest_folder.to_s, id: "core-share%02d" % index
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment