forked from crystal-lang/shards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
30 lines (25 loc) · 976 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
Vagrant.configure(2) do |config|
config.ssh.forward_agent = true
config.vm.box_check_update = false
config.vm.hostname = "shards"
config.vm.define :precise64 do |app|
app.vm.provider :lxc do |lxc, override|
override.vm.box = "fgrehm/precise64-lxc"
lxc.container_name = "shards-precise64"
end
end
config.vm.define :precise32 do |app|
app.vm.provider :lxc do |lxc, override|
override.vm.box = "erickeller/precise-i386"
lxc.container_name = "shards-precise32"
end
end
config.vm.provision "shell", inline: <<-SHELL
apt-key adv --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54
echo "deb http://dist.crystal-lang.org/apt crystal main" > /etc/apt/sources.list.d/crystal.list
apt-get update
apt-get install --yes build-essential crystal libyaml-dev git
su - vagrant -c 'git config --global user.email "you@example.com"'
su - vagrant -c 'git config --global user.name "Your Name"'
SHELL
end