Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- VAGRANTFILE_API_VERSION = "2"
- Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
- config.vm.define "boot2docker", autostart: false do |b2d|
- b2d.vm.box = "yungsang/boot2docker"
- b2d.nfs.functional = false
- b2d.vm.network :forwarded_port, guest: 8080, host: 8080
- end
- config.vm.define "hello-world", primary: true do |v|
- v.vm.provider "docker" do |d|
- d.vagrant_vagrantfile = "./Vagrantfile"
- d.vagrant_machine = "boot2docker"
- d.image = "yungsang/busybox"
- d.name = "hello-world"
- d.ports = ["8080:80"]
- d.cmd = ["nc", "-p", "80", "-l", "-l", "-e", "echo", "hello world!"]
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement