-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
51 lines (40 loc) · 1.49 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
# IMPORTANT NOTES:
# For best results use a VirualBox version that matches the guest
# lsmod | grep -io vboxguest | xargs modinfo | grep -iw version
# provision script
#-----------------------------------------------------------------------
$bootstrap = <<BOOTSTRAP
export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get upgrade
# label as reference environment
echo "export ECE3574_REFERENCE_ENV=Y" >> /etc/environment
# install base development tools
apt-get -y install build-essential
apt-get -y install cmake valgrind lcov graphviz doxygen
apt-get -y install python3-pip
pip3 install gcovr
pip3 install pexpect
# install a lightweight graphical environment
apt-get -y install virtualbox-guest-dkms
apt-get -y install virtualbox-guest-utils
apt-get -y install virtualbox-guest-x11
apt-get -y install xorg sddm openbox
echo "[Autologin]" >> /etc/sddm.conf
echo "User=vagrant" >> /etc/sddm.conf
echo "Session=openbox.desktop" >> /etc/sddm.conf
# install a simple browser (for viewing coverage reports)
apt-get -y install hv3
# install Qt dev libs
apt-get -y install qt5-default
BOOTSTRAP
#-----------------------------------------------------------------------
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
# get rid of annoying console.log file and start the GUI
config.vm.provider "virtualbox" do |vb|
vb.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ]
vb.gui = true
end
# setup the VM
config.vm.provision "shell", inline: $bootstrap
end