forked from opencog/opencog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
29 lines (27 loc) · 1.12 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
# QuickStart
# 1. vagrant box add precise64 http://files.vagrantup.com/precise64.box
# 2. vagrant up
# 3. vagrant ssh
# Optional
# 1. Change Ubuntu archive mirror
# 2. Change memory and cpus values
# More: http://wiki.opencog.org/w/Setup_OpenCog_development_environment_VM_using_Vagrant
# More: http://wiki.opencog.org/w/Building_OpenCog
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.hostname = "cogbox"
config.vm.provision "shell", inline: "sed -i 's/us.archive.ubuntu.com/hk.archive.ubuntu.com/g' /etc/apt/sources.list"
config.vm.provision "shell", inline: "apt-get update -y"
config.vm.provision "shell", inline: "apt-get install python-software-properties -y"
config.vm.provision "shell", path: "http://raw.github.com/opencog/ocpkg/master/ocpkg"
config.vm.provision "shell", inline: "ln -v -s /usr/local/src/opencog ~vagrant"
config.vm.provider :virtualbox do |vb|
vb.name = "cogbox"
vb.customize [
"modifyvm", :id,
"--memory", "1536",
"--name", "opencog-dev-vm",
"--cpus", "2"
]
end
end