1 Star 0 Fork 0

马瑞雪/scrapybook

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Vagrantfile.32 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
Dimitrios Kouzis-Loukas 提交于 2017-04-18 10:38 . Update Vagrantfile.32
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/maruixue/scrapybook.git
git@gitee.com:maruixue/scrapybook.git
maruixue
scrapybook
scrapybook
master

搜索帮助