-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathVagrantfile
109 lines (78 loc) · 3.1 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.define "xenial64" do |xenial64|
xenial64.vm.box = "ubuntu/xenial64"
xenial64.vm.hostname = "xenial64"
xenial64.vm.network "forwarded_port", guest: 3201, host: 3202
xenial64.vm.synced_folder "./", "/vagrant", type: "virtualbox"
xenial64.vm.provider "virtualbox"
xenial64.vm.provision "shell", privileged: false, inline: <<-SHELL
sudo apt-get -qq update
sudo apt-get -qq full-upgrade
sudo apt-get -qq autoremove
sudo apt-get -qq install git curl python build-essential libpam0g-dev gdebi-core
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt-get -qq install nodejs
sudo npm install -g npm
cd /vagrant
npm install
npm rebuild
npm run installer:ubuntu-16.04_amd64
sudo gdebi --non-interactive installers/blur-monitor_ubuntu-16.04_amd64.deb
sleep 10
sudo netstat -tulpn | grep 3201
SHELL
end
config.vm.define "bionic64" do |bionic64|
bionic64.vm.box = "ubuntu/bionic64"
bionic64.vm.hostname = "bionic64"
bionic64.vm.network "forwarded_port", guest: 3201, host: 3202
bionic64.vm.synced_folder "./", "/vagrant", type: "virtualbox"
bionic64.vm.provider "virtualbox"
bionic64.vm.provision "shell", privileged: false, inline: <<-SHELL
sudo apt-get -qq update
sudo apt-get -qq full-upgrade
sudo apt-get -qq autoremove
sudo apt-get -qq install git curl python build-essential libpam0g-dev gdebi-core
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt-get -qq install nodejs
sudo npm install -g npm
cd /vagrant
npm install
npm rebuild
npm run build:tarball
npm run installer:ubuntu-18.04_amd64
sudo gdebi --non-interactive installers/blur-monitor_ubuntu-18.04_amd64.deb
sleep 10
sudo netstat -tulpn | grep 3201
SHELL
end
config.vm.define "stretch64" do |stretch64|
stretch64.vm.box = "debian/stretch64"
stretch64.vm.hostname = "stretch64"
stretch64.vm.network "forwarded_port", guest: 3201, host: 3202
stretch64.vm.synced_folder "./", "/vagrant", type: "virtualbox"
stretch64.vm.provider "virtualbox"
stretch64.vm.provision "shell", privileged: false, inline: <<-SHELL
sudo apt-get -qq update
sudo apt-get -qq full-upgrade
sudo apt-get -qq autoremove
sudo apt-get -qq install git curl python build-essential libpam0g-dev gdebi-core net-tools
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt-get -qq install nodejs
sudo npm install -g npm
cd /vagrant
npm install
npm rebuild
npm run installer:debian-9_amd64
sudo gdebi --non-interactive installers/blur-monitor_debian-9_amd64.deb
sleep 10
sudo netstat -tulpn | grep 3201
SHELL
end
end