-
-
Save martinos/6123866 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 | |
RUN /bin/bash -c 'source /etc/profile.d/chruby.sh' | |
# Ruby 2.0 | |
RUN ruby-install ruby 2.0 | |
RUN apt-get install -y libxslt-dev libxml2-dev | |
RUN /bin/bash -c 'source /etc/profile.d/chruby.sh && chruby 2.0 && gem install --no-ri --no-rdoc bundler && gem install --no-ri --no-rdoc nokogiri' | |
## ImageMagick | |
RUN apt-get install -y imagemagick libmagickwand-dev | |
RUN apt-get install -y git | |
# Ruby 1.9.3 | |
RUN ruby-install ruby 1.9.3 | |
RUN /bin/bash -c 'source /etc/profile.d/chruby.sh && chruby 1.9.3 && gem install --no-ri --no-rdoc bundler && gem install --no-ri --no-rdoc nokogiri && gem--no-ri --no-rdoc install rmagick' | |
# ImageMagick | |
RUN apt-get install -y imagemagick libmagickwand-dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment