-
Notifications
You must be signed in to change notification settings - Fork 5
/
Vagrantfile
32 lines (31 loc) · 1.21 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Sets up boxes for both Linux and Windows (Wine).
Vagrant.configure(2) do |config|
config.vm.box = 'ubuntu/vervet32'
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
end
config.vm.define 'linux' do |linux|
linux.vm.provision 'shell', inline: <<-SHELL
wget -q -O- https://s3.amazonaws.com/download.fpcomplete.com/ubuntu/fpco.key | apt-key add -
echo 'deb http://download.fpcomplete.com/ubuntu/vivid stable main' | tee /etc/apt/sources.list.d/fpco.list
apt-get update
apt-get install -y stack
SHELL
end
config.vm.define 'wine' do |wine|
wine.vm.provision "shell", inline: <<-SHELL
apt-get update
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula "select" true | debconf-set-selections
apt-get install -y wine
SHELL
wine.vm.provision "shell", privileged: false, inline: <<-SHELL
wget https://github.com/commercialhaskell/stack/releases/download/v1.1.2/stack-1.1.2-windows-i386.zip
unzip stack-1.1.2-windows-i386.zip
wine wineboot
mv stack.exe /vagrant/stack.exe
SHELL
end
end