Vagrantfile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. VAGRANTFILE_API_VERSION = "2"
  4. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  5. #Set box
  6. config.vm.box = "ubuntu/trusty64"
  7. #Do not check fo updates
  8. config.vm.box_check_update = false
  9. #Add private network
  10. config.vm.network "private_network", type: "dhcp"
  11. #Redirect ports
  12. config.vm.network "forwarded_port", guest: 43110, host: 43110
  13. config.vm.network "forwarded_port", guest: 15441, host: 15441
  14. #Sync folder using NFS if not windows
  15. config.vm.synced_folder ".", "/vagrant",
  16. :nfs => !Vagrant::Util::Platform.windows?
  17. #Virtal Box settings
  18. config.vm.provider "virtualbox" do |vb|
  19. # Don't boot with headless mode
  20. #vb.gui = true
  21. # Set VM settings
  22. vb.customize ["modifyvm", :id, "--memory", "512"]
  23. vb.customize ["modifyvm", :id, "--cpus", 1]
  24. end
  25. #Update system
  26. config.vm.provision "shell",
  27. inline: "sudo apt-get update -y && sudo apt-get upgrade -y"
  28. #Install deps
  29. config.vm.provision "shell",
  30. inline: "sudo apt-get install msgpack-python python-gevent python-pip python-dev -y"
  31. config.vm.provision "shell",
  32. inline: "sudo pip install msgpack --upgrade"
  33. end