Last active
August 29, 2015 14:24
-
-
Save mariosant/4982be346cb90cbedd9f to your computer and use it in GitHub Desktop.
Vagrantfile with rvm and nvm. It uses Fedora 22 libvirt as base, so don't forget to install that first.
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 = "fedora-22" | |
config.vm.network "forwarded_port", guest: 3000, host: 3000 | |
config.vm.synced_folder ".", "/vagrant", type: 'nfs' | |
config.vm.provision "shell", privileged: true, inline: <<-SHELL | |
dnf install -y which gpgme htop byobu patch libyaml-devel glibc-headers autoconf gcc-c++ glibc-devel patch readline-devel zlib-devel libffi-devel openssl-devel make automake libtool bison sqlite-devel git postgresql-devel | |
SHELL | |
config.vm.provision "shell", privileged: false, inline: <<-SHELL | |
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
curl -sSL https://get.rvm.io --silent | bash -s stable | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh --silent | bash | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should work with Virtualbox as well. Didn't test it though.