Skip to content

Instantly share code, notes, and snippets.

@johnbellone
Created August 15, 2013 02:49
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 johnbellone/6237790 to your computer and use it in GitHub Desktop.
Save johnbellone/6237790 to your computer and use it in GitHub Desktop.
Dockerfile for rbenv and ruby-build to manage rubies.
from ubuntu
maintainer John Bellone <john.bellone.jr@gmail.com>
# install essentials
run apt-get -y update
run apt-get -y install build-essential git-core
# install rbenv
run git clone https://github.com/sstephenson/rbenv /usr/local/rbenv
run mkdir -p /usr/local/rbenv/plugins
run echo 'export RBENV_ROOT=/usr/local/rbenv' > /etc/profile.d/rbenv.sh
run echo 'export PATH=$RBENV_ROOT/bin:$PATH' >> /etc/profile.d/rbenv.sh
run echo 'eval "$(rbenv init -)"'
# install plugins
run git clone https://github.com/sstephenson/ruby-build /usr/local/rbenv/plugins/ruby-build
run git clone https://github.com/sstephenson/rbenv-vars /usr/local/rbenv/plugins/rbenv-vars
run git clone https://github.com/jf/rbenv-gemset /usr/local/rbenv/plugins/rbenv-gemset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment