Last active
August 29, 2015 14:00
-
-
Save dz1984/11130582 to your computer and use it in GitHub Desktop.
eia_crawler dev env.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
config.vm.network :forwarded_port, guest: 8000, host: 8100 | |
config.vm.provider :virtualbox do |vb| | |
vb.name = "eia" | |
vb.customize ["modifyvm", :id, "--memory", "2048"] | |
vb.customize ["modifyvm", :id, "--ostype", "Ubuntu_64"] | |
end | |
config.vm.provision "shell", inline: <<-SCRIPT | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 627220E7 | |
echo 'deb http://archive.scrapy.org/ubuntu scrapy main' | sudo tee /etc/apt/sources.list.d/scrapy.list | |
apt-get update | |
apt-get -y install scrapy-0.22 | |
apt-get -y install git | |
apt-get -y install vim | |
git clone https://github.com/g0V/eia_crawler.git | |
SCRIPT | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment