forked from CESARBR/knot-gateway-buildroot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
31 lines (26 loc) · 965 Bytes
/
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
MEMORY = ENV['BUILDROOT_VAGRANT_MEMORY'] || "4096"
CORES = ENV['BUILDROOT_VAGRANT_CORES'] || "2"
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.disksize.size = "20GB"
config.vm.provider "virtualbox" do |v|
v.name = "knot-gateway-buildroot-vm"
v.cpus = CORES.to_i
v.memory = MEMORY.to_i
end
config.vm.network "private_network", type: "dhcp"
config.vm.synced_folder ".", "/home/vagrant/buildroot", type: "nfs", mount_options: ["rw", "vers=3", "tcp", "fsc", "actimeo=2"]
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y \
bzr cvs git mercurial subversion \
build-essential automake libtool pkg-config g++ flex gawk bc \
cpio locales \
libssl-dev libncurses5-dev \
zlib1g libncurses5 \
wget unzip \
cachefilesd
echo "RUN=yes" | sudo tee /etc/default/cachefilesd
sudo -u vagrant mkdir -p /home/vagrant/output
SHELL
end