forked from cardstack/cardstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
36 lines (27 loc) · 776 Bytes
/
Vagrantfile
File metadata and controls
36 lines (27 loc) · 776 Bytes
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
35
36
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.hostname = "cardstack-server"
private_ip = "10.0.15.2"
config.vm.network "private_network", ip: private_ip
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 2
end
if File.exists? "./scripts/root_environment.sh"
config.vm.provision :shell do |shell|
shell.path = "./scripts/root_environment.sh"
shell.args = [
private_ip
]
end
end
if File.exists? "./scripts/user_environment.sh"
config.vm.provision :shell do |shell|
shell.privileged = false
shell.path = "./scripts/user_environment.sh"
end
end
end