forked from scalingexcellence/scrapybook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile.dockerhost
39 lines (31 loc) · 909 Bytes
/
Vagrantfile.dockerhost
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
# Set if you are behind proxy
#proxy_url = "http://user:[email protected]:8080/"
Vagrant.configure("2") do |config|
if !defined?(proxy_url) || proxy_url.nil? || proxy_url.empty?
# No proxy setup necessary.
else
# Setup proxies
ENV['http_proxy'] = proxy_url
ENV['https_proxy'] = proxy_url
end
config.vm.define "docker-provider"
config.vm.box = "lookfwd/scrapybook"
# Setting up ports
(
[9200] + # ES
[6379] + # Redis
[3306] + # MySQL
[9312] + # Web
(6800..6803).to_a + # Scrapyd
[21] + (30000..30009).to_a + # Spark
[]).each do |port|
config.vm.network "forwarded_port", guest: port, host: port
end
# Set the mem/cpu requirements
config.vm.provider :virtualbox do |vb|
vb.memory = 2048
vb.cpus = 4
vb.name = "docker-provider"
vb.check_guest_additions = false
end
end