-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
31 lines (26 loc) · 1.02 KB
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos65-x86_64"
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box"
config.vm.hostname = "myapp"
config.vm.network :private_network, ip: (ENV["NCSA_VM_IP"] || "10.10.10.11")
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id,
"--memory", [ENV["NCSA_VM_MEM"].to_i, 1024].max,
"--cpus", [ENV["NCSA_VM_CPUS"].to_i, 1].max
]
end
config.vm.provision :shell, path: "config/setup/server.sh"
config.vm.provision :shell, inline: <<-CMD
su -c 'bash -lx /vagrant/config/setup/ruby.sh' vagrant
echo
echo '### Next action ###'
echo '$ cd ~/ && https://bitbucket.org/timedia/ncsa.git'
echo '$ cd ncsa'
echo '$ git config user.name 'Your name''
echo '$ git config user.email '[email protected]''
echo
CMD
end