forked from eclipse-paho/paho.mqtt.python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
23 lines (19 loc) · 1018 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
Vagrant.configure("2") do |config|
# The base OS
config.vm.box = "ubuntu/trusty64"
config.vm.provision :shell, :inline => "sudo apt-get update"
# Install make
config.vm.provision :shell, :inline => "apt-get install -y make"
# Provision Python 2
config.vm.provision :shell, :inline => "apt-get upgrade -y python"
config.vm.provision :shell, :inline => "apt-get install -y python-pip"
config.vm.provision :shell, :inline => "python -m pip install --upgrade pip"
config.vm.provision :shell, :inline => "python -m pip install virtualenv"
# Provision Python 3
config.vm.provision :shell, :inline => "apt-get install -y python3"
config.vm.provision :shell, :inline => "apt-get install -y python3-pip"
config.vm.provision :shell, :inline => "python3 -m pip install --upgrade pip"
config.vm.provision :shell, :inline => "python3 -m pip install virtualenv"
# reassuring message to complete:
config.vm.provision "shell", inline: "echo All set!", run: "always"
end