2014-09-26 20:57:12 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
|
|
|
VAGRANTFILE_API_VERSION = "2"
|
|
|
|
|
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
|
|
|
|
|
|
config.vm.define "linux32" do |linux32|
|
2019-10-11 00:20:01 +00:00
|
|
|
linux32.vm.box = "bento/centos-6.10-i386"
|
2019-11-27 00:51:26 +00:00
|
|
|
linux32.vm.provision :shell, path: "build-linux-centos.sh"
|
2014-09-26 20:57:12 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
config.vm.define "linux64" do |linux64|
|
2019-10-11 00:20:01 +00:00
|
|
|
linux64.vm.box = "bento/centos-6.10"
|
2019-11-27 00:51:26 +00:00
|
|
|
linux64.vm.provision :shell, path: "build-linux-centos.sh"
|
|
|
|
end
|
|
|
|
|
|
|
|
config.vm.define "linux32-musl" do |musl32|
|
|
|
|
musl32.vm.box = "alpine/alpine32"
|
|
|
|
musl32.vm.box_version = "3.6.0"
|
|
|
|
musl32.vm.provision :shell, path: "build-linux-alpine.sh"
|
|
|
|
end
|
|
|
|
|
|
|
|
config.vm.define "linux64-musl" do |musl64|
|
|
|
|
musl64.vm.box = "generic/alpine36"
|
|
|
|
|
|
|
|
## Should use the alpine/alpine64 box, but this issue needs to be fixed first - https://github.com/hashicorp/vagrant/issues/11218
|
|
|
|
# musl64.vm.box = "alpine/alpine64"
|
|
|
|
# musl64.vm.box_version = "3.6.0"
|
|
|
|
|
|
|
|
musl64.vm.provision :shell, path: "build-linux-alpine.sh"
|
2014-09-26 20:57:12 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
|
|
v.memory = 2048
|
|
|
|
v.cpus = 4
|
2017-06-05 19:16:02 +00:00
|
|
|
v.customize ["modifyvm", :id, "--nictype1", "virtio" ]
|
2014-09-26 20:57:12 +00:00
|
|
|
end
|
2014-09-26 22:41:28 +00:00
|
|
|
|
2019-11-27 00:51:26 +00:00
|
|
|
if Vagrant.has_plugin?("vagrant-cachier")
|
|
|
|
config.cache.scope = :box
|
|
|
|
end
|
|
|
|
if Vagrant.has_plugin?("vagrant-vbguest")
|
|
|
|
config.vbguest.no_install = true
|
|
|
|
end
|
|
|
|
|
2015-10-13 00:29:58 +00:00
|
|
|
config.vm.synced_folder "../target", "/rocksdb-build"
|
2014-09-26 22:41:28 +00:00
|
|
|
config.vm.synced_folder "../..", "/rocksdb", type: "rsync"
|
2015-09-01 18:07:43 +00:00
|
|
|
config.vm.boot_timeout = 1200
|
2014-09-26 20:57:12 +00:00
|
|
|
end
|