Created
August 13, 2015 09:11
-
-
Save wutangpaul/4b404a961b81bc47e101 to your computer and use it in GitHub Desktop.
Quickly provision a Vagrant box with Ubuntu, nvm, Node.js, rvm, Ruby 2, mongodb and git.
This file contains hidden or 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
#!/bin/bash | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list | |
sudo apt-get update | |
sudo apt-get install -y git-core subversion curl mongodb-org | |
# nvm and nodejs | |
curl https://raw.githubusercontent.com/creationix/nvm/v0.23.3/install.sh | bash | |
echo "source /home/vagrant/.nvm/nvm.sh" >> /home/vagrant/.profile | |
source /home/vagrant/.profile | |
nvm install 0.12 | |
nvm alias default 0.12 | |
npm install -g npm | |
# rvm and ruby | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
curl -sSL https://get.rvm.io | bash -s stable --ruby |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment