Last active
August 29, 2015 14:18
-
-
Save howardroark/25550e799297fafb3b94 to your computer and use it in GitHub Desktop.
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 : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu1404" | |
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box" | |
config.vm.provision :shell, inline: $install_nvmnode | |
end | |
$install_nvmnode = <<SCRIPT | |
apt-get install git -y | |
su - vagrant -c "curl https://raw.githubusercontent.com/creationix/nvm/v0.24.1/install.sh | bash" | |
su - vagrant -c "source ~/.nvm/nvm.sh; nvm install stable && nvm alias default stable && nvm use stable" | |
SCRIPT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment