forked from nipy/nipype
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
62 lines (52 loc) · 2.47 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
VAGRANTFILE_API_VERSION = "2"
$script = <<SCRIPT
# Following section commented out as gridengine requires interactive
# components
# # Install neurodebian repo
# bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
#
# # Install grid engine
# sudo apt-get install -qq gridengine-master gridengine-exec gridengine-client gridengine-qmon
# # Configure: http://wiki.unixh4cks.com/index.php/Setting_up_Sun_Grid_Engine_on_Ubuntu
# sudo -u sgeadmin qconf -am vagrant
# qconf -au vagrant users
# qconf -as neuro
# qconf -ahgrp @allhosts
# qconf -aattr hostgroup hostlist neuro @allhosts
# qconf -aq main.q
# qconf -aattr queue hostlist @allhosts main.q
# qconf -aattr queue slots "2, [neuro=3]" main.q
# install anaconda
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
chmod +x miniconda.sh
./miniconda.sh -b
echo "export PATH=$HOME/miniconda/bin:\\$PATH" >> .bashrc
# install nipype dependencies
$HOME/miniconda/bin/conda update --yes conda
$HOME/miniconda/bin/conda install --yes pip numpy scipy nose traits networkx
$HOME/miniconda/bin/conda install --yes dateutil ipython-notebook matplotlib
$HOME/miniconda/bin/pip install nibabel --use-mirrors
$HOME/miniconda/bin/pip install https://github.com/RDFLib/rdflib/archive/master.zip
$HOME/miniconda/bin/pip install https://github.com/satra/prov/archive/enh/rdf.zip
$HOME/miniconda/bin/pip install https://github.com/nipy/nipype/archive/master.zip
SCRIPT
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define :engine do |engine_config|
engine_config.vm.box = "gridneuro"
#engine_config.vm.box_url = "http://files.vagrantup.com/precise64.box"
engine_config.vm.box_url = "https://dl.dropboxusercontent.com/u/363467/precise64_neuro.box"
#engine_config.vm.network :forwarded_port, guest: 80, host: 8080
#engine_config.vm.network :public_network, :bridge => 'en0: Wi-Fi (AirPort)'
engine_config.vm.network :private_network, ip: "192.168.100.20"
engine_config.vm.hostname = 'neuro'
#engine_config.vm.synced_folder "../software", "/software"
#engine_config.vm.synced_folder "../data", "/data"
engine_config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "50"]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--memory", "4096"]
vb.customize ["modifyvm", :id, "--cpus", "4"]
end
engine_config.vm.provision "shell", :privileged => false, inline: $script
end
end