sample node + mongodb file
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
$install_script = <<SCRIPT | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list | |
sudo apt-get install -y mongodb-10gen | |
curl -L https://get.rvm.io | bash -s stable --ruby=2.1.1 | |
source /home/vagrant/.rvm/scripts/rvm | |
gem install bundler | |
cd /sage && bundle install && npm install -g bower grunt-cli | |
SCRIPT | |
Vagrant.configure(2) do |config| | |
config.vm.box = "hashicorp/precise64" | |
config.vm.network "forwarded_port", guest: 4000, host: 4000 | |
config.vm.synced_folder ".", "/sage", type: "nfs" | |
config.vm.provider "virtualbox" do |v| | |
v.memory = 1024 | |
v.cpus = 2 | |
end | |
config.vm.provision "shell", inline: "apt-get install -y curl nodejs" | |
config.vm.provision "shell", inline: $install_script, privileged: false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment