This repository has been archived by the owner on Jun 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
45 lines (36 loc) · 1.4 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
$bootstrap = <<SCRIPT
# fix little things
locale-gen en_US.UTF-8 fr_FR.UTF-8 it_IT.UTF-8
apt-get update
apt-get -y install htop ntpdate
# iperf and iostat
apt-get -y install iperf iperf3 sysstat tshark
# python3 with pyvenv
apt-get -y install python3.4 python3.4-venv python3.4-dev
# deps of python deps
apt-get -y install gfortran libopenblas-dev liblapack-dev
apt-get -y install libpng-dev libfreetype6-dev pkg-config
apt-get -y install cmake qt4-dev-tools qt4-qmake
# OVS
apt-get -y install openvswitch-switch
# Docker
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo deb https://apt.dockerproject.org/repo ubuntu-wily main > /etc/apt/sources.list.d/docker.list
apt-get update
apt-get -y install linux-image-extra-$(uname -r)
apt-get -y install docker-engine
adduser vagrant docker
echo 'sudo bash --rcfile /vagrant/.vagrantrc ; exit' >> /home/vagrant/.bash_profile
>&2 echo "Provisioned! Now you REALLY SHOULD run vagrant reload in order to apply kernel changes!"
SCRIPT
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/wily64"
config.vm.hostname = "playground-dev"
config.vm.provider "virtualbox" do |vb|
vb.linked_clone = true if Vagrant::VERSION =~ /^1.8/
vb.memory = 1536
vb.cpus = 2
end
config.vm.provision :shell, inline: $bootstrap
config.vm.provision :shell, inline: "ntpdate pool.ntp.org", run: "always"
end