forked from scalingexcellence/scrapybook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile.32
38 lines (33 loc) · 1.32 KB
/
Vagrantfile.32
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
Vagrant.configure("2") do |config|
# Box based on ubuntu/trusty32. Limited but it works without any
# virtualization extensions.
config.vm.define "scrapy-vm-32"
config.vm.box = "lookfwd/scrapybook32"
config.vm.hostname = "dev"
config.vm.synced_folder ".", "/home/vagrant/book"
# Setting up ports
(
[9200] + # ES
[6379] + # Redis
[3306] + # MySQL
[9312] + # Web
[6800] + # Scrapyd
[]).each do |port|
config.vm.network "forwarded_port", guest: port, host: port, host_ip: "localhost", auto_correct: true
end
# Set the mem/cpu requirements
config.vm.provider :virtualbox do |vb|
vb.name = "scrapy-vm-32"
vb.check_guest_additions = false
vb.cpus = 1
# If you get: cloud-init-nonet[4.54]: waiting 10 seconds for network device
# cloud-init-nonet[14.57]: waiting 120 seconds for network device
# cloud-init-nonet[134.57]: gave up waiting for a network device.
# Your netowrk card is not supported with the default adapter.
# See: https://github.com/mitchellh/vagrant/issues/3860#issuecomment-167664778
# Try to uncomment the following two lines:
#
# vb.customize ["modifyvm", :id, "--nictype1", "Am79C973"]
# vb.customize ["modifyvm", :id, "--nictype2", "Am79C973"]
end
end