| Vagrant.configure("2") do |config| | |
| config.vm.box = "mitchellh/boot2docker" | |
| config.vm.network :forwarded_port, guest: 3000, host: 3000 | |
| config.vm.provider "virtualbox" do |v| | |
| # On VirtualBox, we don't have guest additions or a functional vboxsf | |
| # in TinyCore Linux, so tell Vagrant that so it can be smarter. | |
| v.check_guest_additions = false | |
| v.functional_vboxsf = false | |
| v.memory = 2048 | |
| end | |
| ["vmware_fusion", "vmware_workstation"].each do |vmware| | |
| config.vm.provider vmware do |v| | |
| if v.respond_to?(:functional_hgfs=) | |
| v.functional_hgfs = false | |
| end | |
| v.vmx["memsize"] = "2048" | |
| end | |
| end | |
| # b2d doesn't support NFS | |
| config.nfs.functional = false | |
| # b2d doesn't persist filesystem between reboots | |
| if config.ssh.respond_to?(:insert_key) | |
| config.ssh.insert_key = false | |
| end | |
| end | |