forked from cern-fts/fts3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
35 lines (28 loc) · 827 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# Look at README.md to see how to use this file
#
require 'getoptlong'
# By default uses centos/7. You can do `vagrant --box=centos/6`
opts = GetoptLong.new(
['--box', GetoptLong::OPTIONAL_ARGUMENT]
)
box = "bento/centos-7.4"
opts.each do |opt, arg|
case opt
when '--box'
box = arg
end
end
Vagrant.configure("2") do |config|
config.vm.box = box
#config.vm.provision "file", source: "packaging/rpm/fts.spec", destination: "/tmp/fts.spec"
config.vm.provision :shell, path: "bootstrap.sh"
config.vm.synced_folder "../gfal2/", "/home/vagrant/gfal2/"
config.vm.synced_folder "../gfal2-bindings/", "/home/vagrant/gfal2-bindings/"
config.vm.provider "virtualbox" do |vb|
vb.memory = 1024
vb.cpus = 2
end
end