/
Vagrantfile
42 lines (34 loc) · 1.84 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
# This is a sample Vagrantfile for a reference environment. It has a
# standard set of scripts to install packages, get code and set things
# up. You can edit this Vagrantfile if you need to, but most configuration
# for specific projects can probably done just by editing the scripts in
# /scripts.
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "uomsystemsbiology/base64-vbox"
config.vm.provider :virtualbox do |v|
v.gui = true
v.memory = 2048
end
#Connection details
config.ssh.username = "sbl"
config.ssh.password = "sbl"
config.ssh.insert_key = false
# Synchronise folers
config.vm.synced_folder ".", "/vagrant", type: "virtualbox", disabled: true
#Copying the contents of /data to a temporary directory on the environment
config.vm.provision "shell", inline: "sudo rm -rf ~/temp;sudo mkdir ~/temp -p;chmod 777 ~/temp"
config.vm.provision "file", source: "./data", destination: "~/temp"
config.vm.provision "shell", inline: "sudo rm -rf ~/scripts;sudo mkdir ~/scripts -p;chmod 777 ~/scripts"
config.vm.provision "file", source: "./scripts", destination: "~/scripts"
#Provisioning the environment
config.vm.provision "shell", path: "scripts/1_init.sh", privileged: false
config.vm.provision "shell", path: "scripts/2_install_core.sh", privileged: false
#config.vm.provision "shell", path: "scripts/3_install_desktop.sh", privileged: false
config.vm.provision "shell", path: "scripts/4_configure_core.sh", privileged: false
config.vm.provision "shell", path: "scripts/5_configure_desktop.sh", privileged: false
config.vm.provision "shell", path: "scripts/6_finish.sh", privileged: false
end