Skip to content

Instantly share code, notes, and snippets.

@mariosant
Last active August 29, 2015 14:24
Show Gist options
  • Save mariosant/4982be346cb90cbedd9f to your computer and use it in GitHub Desktop.
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.
# -*- 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
@mariosant
Copy link
Author

It should work with Virtualbox as well. Didn't test it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment