about summary refs log tree commit diff
path: root/Vagrantfile
diff options
context:
space:
mode:
authorEffy Elden <github@effy.is>2017-04-23 22:21:20 +1000
committerEugen <eugen@zeonfederated.com>2017-04-23 14:21:20 +0200
commita9a4710fe17b6b3b9657d370d0dc5062ef25c7ab (patch)
tree85174824f5249d90dafdec1821b6a428a9284e49 /Vagrantfile
parentcc83ee60fb464037bb4705561109422063a0b47e (diff)
Alter Vagrantfile to use RVM for Ruby installation (#2346)
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile19
1 files changed, 4 insertions, 15 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 2ff609425..6d7004faf 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -35,23 +35,12 @@ sudo apt-get install \
   libreadline-dev \
   -y
 
-# Install rbenv
-git clone https://github.com/rbenv/rbenv.git ~/.rbenv
-cd ~/.rbenv && src/configure && make -C src
-echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
-echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
-
-git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
-
-export PATH="$HOME/.rbenv/bin:$PATH"
-eval "$(rbenv init -)"
-
+# Install rvm
 cd /vagrant
-
 read RUBY_VERSION < .ruby-version
-echo "Compiling Ruby $RUBY_VERSION: warning, this takes a while!!!"
-rbenv install $RUBY_VERSION
-rbenv global $RUBY_VERSION
+gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
+curl -sSL https://get.rvm.io | bash -s stable --ruby=$RUBY_VERSION
+source /home/vagrant/.rvm/scripts/rvm
 
 # Configure database
 sudo -u postgres createuser -U postgres vagrant -s