Skip to content

Instantly share code, notes, and snippets.

@shingara
Created June 5, 2013 14:30
Show Gist options
  • Save shingara/5714289 to your computer and use it in GitHub Desktop.
Save shingara/5714289 to your computer and use it in GitHub Desktop.
Docker file to have chruby. Not usefull :)
## Docker file of shingara/chruby container
FROM base
MAINTAINER Cyril Mougel "[email protected]"
RUN apt-get update
RUN apt-get install -q -y wget
RUN apt-get install -q -y ca-certificates
RUN apt-get install -q -y make
## Ruby-install
RUN wget -O ruby-install-0.1.4.tar.gz https://github.com/postmodern/ruby-install/archive/v0.1.4.tar.gz
RUN tar -xzvf ruby-install-0.1.4.tar.gz
RUN cd ruby-install-0.1.4/ && make install
## chruby
RUN wget -O chruby-0.3.5.tar.gz https://github.com/postmodern/chruby/archive/v0.3.5.tar.gz
RUN tar -xzvf chruby-0.3.5.tar.gz
RUN cd chruby-0.3.5/ && make install
RUN echo '[ -n "$BASH_VERSION" ] || [ -n "$ZSH_VERSION" ] || return' >> /etc/profile.d/chruby.sh
RUN echo 'source /usr/local/share/chruby/chruby.sh' >> /etc/profile.d/chruby.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment