SHARE
TWEET

Untitled

a guest Jan 12th, 2017 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. VAGRANTFILE_API_VERSION = "2"
  2.  
  3. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  4.   config.vm.define "boot2docker", autostart: false do |b2d|
  5.     b2d.vm.box = "yungsang/boot2docker"
  6.     b2d.nfs.functional = false
  7.     b2d.vm.network :forwarded_port, guest: 8080, host: 8080
  8.   end
  9.  
  10.   config.vm.define "hello-world", primary: true do |v|
  11.     v.vm.provider "docker" do |d|
  12.       d.vagrant_vagrantfile = "./Vagrantfile"
  13.       d.vagrant_machine = "boot2docker"
  14.  
  15.       d.image = "yungsang/busybox"
  16.       d.name  = "hello-world"
  17.       d.ports = ["8080:80"]
  18.       d.cmd   = ["nc", "-p", "80", "-l", "-l", "-e", "echo", "hello world!"]
  19.     end
  20.   end
  21. end
RAW Paste Data
Top