Forked from johanneswuerbach/rails-vagrant-provision.sh
Last active
January 15, 2016 03:54
-
-
Save adeubank/d505222fbeba8fe1744a to your computer and use it in GitHub Desktop.
Provision a vagrant box with ruby stable (using rvm)
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
#!/usr/bin/env bash | |
sudo locale-gen en_US.UTF-8 | |
sudo update-locale LANG=en_US.UTF-8 | |
sudo update-locale LC_ALL=en_US.UTF-8 | |
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - | |
sudo apt-get install -y build-essential git curl libxslt1-dev libxml2-dev libssl-dev nodejs | |
ln -s /usr/bin/nodejs /usr/bin/node | |
# rvm and ruby | |
su - vagrant -c 'command curl -sSL https://rvm.io/mpapis.asc | gpg --import -' | |
su - vagrant -c 'curl -sSL https://get.rvm.io | bash -s stable --ruby' | |
su - vagrant -c 'rvm rvmrc warning ignore allGemfiles' | |
su - vagrant -c 'echo "gem: --no-ri --no-rdoc" > ~/.gemrc' | |
echo "All done installing! | |
Next steps: type 'vagrant ssh' to log into the machine." | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment