-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
28 lines (21 loc) · 973 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
version = "1.2.0"
hostname = "flappy.box"
locale = "en_GB.UTF.8"
path = "iojs-v#{version}-linux-x64"
# Box
config.vm.box = "ubuntu/trusty64"
# Shared folders
config.vm.synced_folder ".", "/srv"
# Setup
config.vm.provision :shell, :inline => "touch .hushlogin"
config.vm.provision :shell, :inline => "hostname #{hostname} && locale-gen #{locale}"
config.vm.provision :shell, :inline => "apt-get update --fix-missing"
config.vm.provision :shell, :inline => "apt-get install -q -y g++ make git curl vim"
# Lang
config.vm.provision :shell, :inline => "echo 'fetching #{path}' && wget -q https://iojs.org/dist/v#{version}/#{path}.tar.xz"
config.vm.provision :shell, :inline => "tar -C /usr/local -xpvf #{path}.tar.xz"
config.vm.provision :shell, :inline => "echo 'export PATH=$PATH:/usr/local/#{path}/bin' > .bash_profile"
end