-
Notifications
You must be signed in to change notification settings - Fork 52
/
Vagrantfile
44 lines (35 loc) · 1.05 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# sysvinit based
config.vm.define "wheezy" do |wheezy|
wheezy.vm.box = "debian/wheezy64"
# install ffmpeg
wheezy.vm.provision "shell", inline: <<-SHELL
sudo apt-get install -y ffmpeg
SHELL
end
# upstart based
config.vm.define "trusty" do |trusty|
trusty.vm.box = "geerlingguy/ubuntu1404"
# install avconv
trusty.vm.provision "shell", inline: <<-SHELL
sudo apt-get install -y libav-tools
SHELL
end
# systemd based
config.vm.define "xenial" do |xenial|
xenial.vm.box = "geerlingguy/ubuntu1604"
# install ffmpeg
xenial.vm.provision "shell", inline: <<-SHELL
sudo apt-get install -y ffmpeg
SHELL
end
# common provisioning (install nodejs)
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y curl ca-certificates apt-transport-https
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
SHELL
end