This repository was archived by the owner on Aug 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathVagrantfile
More file actions
69 lines (60 loc) · 2.01 KB
/
Vagrantfile
File metadata and controls
69 lines (60 loc) · 2.01 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Increase RAM to 1 GB
config.vm.provider "virtualbox" do |vbox|
vbox.customize ["modifyvm", :id, "--memory", 1024]
end
# Elasticrawl launches Hadoop jobs for the CommonCrawl dataset using the AWS EMR service.
config.vm.define :elasticrawl do |elasticrawl|
elasticrawl.vm.box = "elasticrawl"
# Ubuntu Server 14.04 LTS
elasticrawl.vm.box = "ubuntu/trusty64"
# Network config
elasticrawl.vm.network :public_network
# Synced folder for creating deploy packages
elasticrawl.vm.synced_folder "../traveling-elasticrawl/", "/traveling-elasticrawl/"
# Provision using Chef Solo
elasticrawl.vm.provision "chef_solo" do |chef|
chef.cookbooks_path = "cookbooks"
chef.add_recipe "apt"
chef.add_recipe "build-essential"
chef.add_recipe "ruby_build"
chef.add_recipe "ruby_rbenv::user"
chef.add_recipe "git"
chef.add_recipe "vim"
chef.json = {
"rbenv" => {
"user_installs" => [
{
"user" => "vagrant",
"rubies" => ["2.0.0-p648", "2.1.8", "2.2.4", "2.3.0"],
"global" => "2.2.4",
"gems" => {
"2.0.0-p648" => [
{ "name" => "bundler",
"version" => "1.11.2" }
],
"2.1.8" => [
{ "name" => "bundler",
"version" => "1.11.2" }
],
"2.2.4" => [
{ "name" => "bundler",
"version" => "1.11.2" }
],
"2.3.0" => [
{ "name" => "bundler",
"version" => "1.11.2" }
]
}
}
]
}
}
end
end
end