Skip to content

Instantly share code, notes, and snippets.

@jakubpawlowicz
Created March 1, 2015 22:36
Show Gist options
  • Save jakubpawlowicz/337baca51deed42d01ed to your computer and use it in GitHub Desktop.
Save jakubpawlowicz/337baca51deed42d01ed to your computer and use it in GitHub Desktop.
Docker + CentOS 7 + Rubinius 2.2.10
FROM centos:7
ENV RBX_VERSION 2.2.10
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV HOME /root
ENV SHELL /bin/bash
RUN yum install -y epel-release
RUN yum install -y bison make wget tar bzip2 gcc-c++ ruby ruby-devel rake zlib-devel \
openssl-devel readline-devel ncurses-devel llvm llvm-static
RUN gem install bundler
RUN wget -O rubinius-release-$RBX_VERSION.tar.bz2 http://releases.rubini.us/rubinius-$RBX_VERSION.tar.bz2
RUN tar -xjf rubinius-release-$RBX_VERSION.tar.bz2
RUN cd rubinius-$RBX_VERSION && bundle install
RUN cd rubinius-$RBX_VERSION && ./configure --prefix=/usr/local
RUN cd rubinius-$RBX_VERSION && rake build
RUN cd rubinius-$RBX_VERSION && rake install
ENV PATH /usr/local/rubinius/2.2/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment