Vagrantfile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
  4. VAGRANTFILE_API_VERSION = "2"
  5. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  6. config.vm.define "linux32" do |linux32|
  7. linux32.vm.box = "bento/centos-6.10-i386"
  8. linux32.vm.provision :shell, path: "build-linux-centos.sh"
  9. end
  10. config.vm.define "linux64" do |linux64|
  11. linux64.vm.box = "bento/centos-6.10"
  12. linux64.vm.provision :shell, path: "build-linux-centos.sh"
  13. end
  14. config.vm.define "linux32-musl" do |musl32|
  15. musl32.vm.box = "alpine/alpine32"
  16. musl32.vm.box_version = "3.6.0"
  17. musl32.vm.provision :shell, path: "build-linux-alpine.sh"
  18. end
  19. config.vm.define "linux64-musl" do |musl64|
  20. musl64.vm.box = "generic/alpine36"
  21. ## Should use the alpine/alpine64 box, but this issue needs to be fixed first - https://github.com/hashicorp/vagrant/issues/11218
  22. # musl64.vm.box = "alpine/alpine64"
  23. # musl64.vm.box_version = "3.6.0"
  24. musl64.vm.provision :shell, path: "build-linux-alpine.sh"
  25. end
  26. config.vm.provider "virtualbox" do |v|
  27. v.memory = 2048
  28. v.cpus = 4
  29. v.customize ["modifyvm", :id, "--nictype1", "virtio" ]
  30. end
  31. if Vagrant.has_plugin?("vagrant-cachier")
  32. config.cache.scope = :box
  33. end
  34. if Vagrant.has_plugin?("vagrant-vbguest")
  35. config.vbguest.no_install = true
  36. end
  37. config.vm.synced_folder "../target", "/rocksdb-build"
  38. config.vm.synced_folder "../..", "/rocksdb", type: "rsync"
  39. config.vm.boot_timeout = 1200
  40. end