-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
61 lines (45 loc) · 1.96 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "4096"
v.vmx["numvcpus"] = "2"
end
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 2
end
config.vm.define "ubuntu" do |box|
box.vm.box = "bento/ubuntu-16.04"
box.vm.provision "shell", inline: <<-SCRIPT
curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl
chmod a+x kerl
touch ~/.kerlrc
cat 'KERL_CONFIGURE_OPTIONS="-enable-shared-zlib --disable-dynamic-ssl-lib --disable-hipe --enable-smp-support --enable-threads --enable-kernel-poll --enable-dirty-schedulers"' > ~/.kerlrc
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y build-essential autoconf libncurses5-dev openssl libssl-dev fop xsltproc unixodbc-dev git
./kerl build git git://github.com/erlang/otp.git OTP-20.0.2 OTP-20.0.2
./kerl install OTP-20.0.2 /srv/otp/20.0
chmod -R 775 /srv/otp/20.0
echo ". /srv/otp/20.0/activate" >> /home/vagrant/.bashrc
SCRIPT
end
config.vm.define "FreeBSD11" do |box|
box.vm.box = "freebsd/FreeBSD-11.0-STABLE"
box.ssh.shell = "sh"
box.vm.synced_folder ".", "/vagrant", :nfs => true, id: "vagrant-root"
box.vm.provision "shell", inline: <<-SCRIPT
curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl
chmod +x kerl
touch ~/.kerlrc
cat 'KERL_CONFIGURE_OPTIONS="-enable-shared-zlib --disable-dynamic-ssl-lib --disable-hipe --enable-smp-support --enable-threads --enable-kernel-poll --enable-dirty-schedulers"' > ~/.kerlrc
pkg update
pkg install autoconf gcc bash gmake flex git curl
./kerl build git git://github.com/erlang/otp.git OTP-20.0.2 OTP-20.0.2
./kerl install OTP-20.0.2 /usr/local/otp/20.0
chmod -R 775 /usr/local/otp/20.0
echo "source /srv/otp/20.0/activate" >> /usr/home/vagrant/.tchrc
SCRIPT
end
end