Skip to content

Commit

Permalink
docs: Update vm_setup script (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
varungandhi-src authored Jul 10, 2024
1 parent a911717 commit 948c160
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/scip-ruby/vm_setup.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
sudo apt update
sudo apt autoremove
sudo apt upgrade
sudo apt install wget unzip ripgrep fd-find gcc libncurses5-dev libncursesw5-dev xxd libtinfo5 make zlib1g-dev autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev
sudo apt install -y wget unzip ripgrep fd-find gcc libncurses5-dev libncursesw5-dev xxd libtinfo5 make zlib1g-dev autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev

rm -rf ~/.rbenv
git clone https://github.com/rbenv/rbenv.git ~/.rbenv --depth=1
(cd ~/.rbenv && src/configure && make -C src)
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv
echo 'eval "$(rbenv init - bash)"' >> ~/.bashrc
echo 'eval "$(rbenv init - zsh)"' >> ~/.zshenv
source ~/.bashrc

git clone https://github.com/rbenv/ruby-build.git --depth=1
Expand All @@ -24,7 +26,7 @@ rm -rf ruby-build

curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash

MAKE_OPTS="-j $(getconf _NPROCESSORS_ONLN)" rbenv install 2.7.2
MAKE_OPTS="-j $(getconf _NPROCESSORS_ONLN)" "$HOME/.rbenv/bin/rbenv" install 3.2.2

git clone https://github.com/sourcegraph/scip-ruby.git
cd scip-ruby
Expand All @@ -38,4 +40,4 @@ mkdir -p "$CACHE_DIR/output-bases/${JOB_NAME}" "$CACHE_DIR/build" "$CACHE_DIR/re
echo "build --disk_cache=$CACHE_DIR/build --repository_cache=$CACHE_DIR/repos"
echo "test --disk_cache=$CACHE_DIR/build --repository_cache=$CACHE_DIR/repos"
echo "build --define SCIP_RUBY_CACHE_RUBY_DIR='$PWD/.cache_ruby' --define SCIP_RUBY_RBENV_EXE='$(which rbenv)' --define EXTERNAL_GEM_EXE='$(which gem)"
} > .bazelrc.local
} > .bazelrc.local

0 comments on commit 948c160

Please sign in to comment.