2014-09-26 22:57:12 +02: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|
|
2017-06-05 21:16:02 +02:00
|
|
|
linux32.vm.box = "hansode/centos-6.7-i386"
|
2014-09-26 22:57:12 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
config.vm.define "linux64" do |linux64|
|
2017-06-05 21:16:02 +02:00
|
|
|
linux64.vm.box = "hansode/centos-6.7-x86_64"
|
2014-09-26 22:57:12 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
|
|
v.memory = 2048
|
|
|
|
v.cpus = 4
|
2017-06-05 21:16:02 +02:00
|
|
|
v.customize ["modifyvm", :id, "--nictype1", "virtio" ]
|
2014-09-26 22:57:12 +02:00
|
|
|
end
|
2014-09-27 00:41:28 +02:00
|
|
|
|
2014-09-30 01:58:16 +02:00
|
|
|
config.vm.provision :shell, path: "build-linux-centos.sh"
|
2015-10-13 02:29:58 +02:00
|
|
|
config.vm.synced_folder "../target", "/rocksdb-build"
|
2014-09-27 00:41:28 +02:00
|
|
|
config.vm.synced_folder "../..", "/rocksdb", type: "rsync"
|
2015-09-01 20:07:43 +02:00
|
|
|
config.vm.boot_timeout = 1200
|
2014-09-26 22:57:12 +02:00
|
|
|
end
|