Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Provision ruby and rust toolchains in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
acj committed Nov 24, 2021
1 parent d437677 commit aacc503
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,19 @@ Vagrant.configure("2") do |config|
chsh -s /usr/local/bin/bash vagrant
# Install ruby and rust toolchains
su vagrant <<'EOF'
su -l vagrant <<'EOF'
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init - bash)"' >> ~/.bash_profile
env MAKEFLAGS="-j2" ~/.rbenv/bin/rbenv install 2.7.4
env MAKEFLAGS="-j2" ~/.rbenv/bin/rbenv install 3.0.2
~/.rbenv/bin/rbenv rehash
~/.rbenv/bin/rbenv global 3.0.2
source ~/.bash_profile
MAKEFLAGS="-j2" rbenv install 2.7.4
MAKEFLAGS="-j2" rbenv install 3.0.2
rbenv rehash
rbenv global 3.0.2
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.56.0
EOF
Expand Down

0 comments on commit aacc503

Please sign in to comment.