Vagrantfile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby ts=2 sts=2 sw=2 et :
  3. # All Vagrant configuration is done below. The "2" in Vagrant.configure
  4. # configures the configuration version (we support older styles for
  5. # backwards compatibility). Please don't change it unless you know what
  6. # you're doing.
  7. Vagrant.configure("2") do |config|
  8. # Every Vagrant development environment requires a box. You can search for
  9. # boxes at https://atlas.hashicorp.com/search.
  10. config.vm.box = "ubuntu/trusty64"
  11. # Share an additional folder to the guest VM. The first argument is
  12. # the path on the host to the actual folder. The second argument is
  13. # the path on the guest to mount the folder. And the optional third
  14. # argument is a set of non-required options.
  15. config.vm.synced_folder ".", "/data/v8js"
  16. config.vm.provision "shell", inline: <<-SHELL
  17. gpg --keyserver keys.gnupg.net --recv 7F438280EF8D349F
  18. gpg --armor --export 7F438280EF8D349F | apt-key add -
  19. apt-get update
  20. apt-get install -y software-properties-common gdb tmux git tig curl apache2-utils
  21. add-apt-repository ppa:ondrej/php
  22. SHELL
  23. config.vm.define "default" do |i|
  24. i.vm.provision "shell", inline: <<-SHELL
  25. add-apt-repository ppa:pinepain/libv8-5.7
  26. apt-get update
  27. apt-get install -y php7.0-dev libv8-5.7-dbg libv8-5.7-dev
  28. SHELL
  29. end
  30. config.vm.define "v8-5.2" do |i|
  31. i.vm.provision "shell", inline: <<-SHELL
  32. add-apt-repository ppa:pinepain/libv8-5.2
  33. apt-get update
  34. apt-get install -y php7.0-dev libv8-5.2-dbg libv8-5.2-dev
  35. SHELL
  36. end
  37. end