Last active
September 5, 2017 13:57
-
-
Save antmelnyk/fb6984178895228fa8cd8a1bfe53d12f to your computer and use it in GitHub Desktop.
Some basic Vagrantfile shell script for Ruby installation
This file contains hidden or 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 = "ubuntu/xenial64" | |
config.vm.network "forwarded_port", guest: 3000, host: 3000 | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
gpg --keyserver hkp://pgp.mit.edu --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
\\curl -sSL https://get.rvm.io | bash | |
source /etc/profile.d/rvm.sh | |
rvm install 2.4.1 | |
gem install bundler | |
sudo apt-get install postgresql postgresql-contrib | |
sudo apt-get install libpq-dev | |
sudo apt-get install nodejs | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment