Skip to content

Instantly share code, notes, and snippets.

@cantino
Created August 23, 2016 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cantino/d93c69bdc27770e46288f3b9cd0284fb to your computer and use it in GitHub Desktop.
Save cantino/d93c69bdc27770e46288f3b9cd0284fb to your computer and use it in GitHub Desktop.
Basic Ruby Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 3000, host: 3000
config.vm.provision "shell", privileged: false, inline: <<-SHELL
sudo apt-get update
# apt-get install -y apache2
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable
source $HOME/.rvm/scripts/rvm
rvm use --default --install 2.3.0
rvm cleanup all
gem install bundler
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment