Skip to content

Instantly share code, notes, and snippets.

@benforeva
Last active December 31, 2015 08:09
Show Gist options
  • Save benforeva/7958701 to your computer and use it in GitHub Desktop.
Save benforeva/7958701 to your computer and use it in GitHub Desktop.
A vagrantfile that sets up meteor & meteorite for discover meteor book example.
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
echo I am provisioning for meteor vm...
sudo apt-get update
echo installing git...
sudo apt-get install -y git-core
echo installing curl...
sudo apt-get install -y curl
sudo apt-get install -y lib
sudo curl https://install.meteor.com | sh
echo installing node...
sudo apt-get install -y python-software-properties g++ make
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install -y nodejs
echo installing meteorite...
sudo -H npm install -g meteorite
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "precise32"
config.vm.hostname = "Meteor"
config.vm.provision :shell, :inline => $script
config.vm.network :forwarded_port, guest: 3000, host: 3001
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment