Skip to content
Permalink
Browse files
Imported rubinius/docker#1.
Added whitespace to break up the steps and added gems/bin to PATH.
  • Loading branch information
brixen committed Jan 3, 2016
1 parent ebebb5d commit 577f12372e4d02a133efb83202064ac925084a4d
Showing with 8 additions and 44 deletions.
  1. +4 −22 dockerfiles/ubuntu/14.04/Dockerfile
  2. +4 −22 dockerfiles/ubuntu/15.10/Dockerfile
@@ -1,26 +1,8 @@
FROM ubuntu:14.04

RUN apt-get -y update && apt-get -y install build-essential bison ruby \
ruby-dev rake zlib1g-dev libyaml-dev libssl-dev libreadline-dev \
libncurses5-dev llvm-3.5 llvm-3.5-dev libeditline-dev libedit-dev
ADD https://rubinius-binaries-rubinius-com.s3-us-west-2.amazonaws.com/ubuntu/14.04/x86_64/rubinius-3.0.tar.bz2 /tmp/rubinius.tar.bz2
RUN apt-get -y install bzip2 && cd /opt && tar xvjf /tmp/rubinius.tar.bz2

RUN gem install bundler
ENV PATH /opt/rubinius/3.0/bin:/opt/rubinius/3.0/gems/bin:$PATH

RUN apt-get -y install wget && \
wget http://releases.rubinius.com/rubinius-3.0.tar.bz2 \
-O /tmp/rubinius.tar.bz2

RUN locale-gen en_US.UTF-8
RUN dpkg-reconfigure locales
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8

RUN cd /tmp && tar jxf rubinius.tar.bz2 && rm *.tar.bz2 && cd rubinius-* && \
bundle install && \
./configure --prefix=/opt/rubinius \
--llvm-config=/usr/bin/llvm-config-3.5 && \
rake build && \
rake install && \
cd /tmp && rm -rf rubinius-*

ENV PATH /opt/rubinius/bin:/opt/rubinius/gems/bin:$PATH
CMD ["bash"]
@@ -1,26 +1,8 @@
FROM ubuntu:15.10

RUN apt-get -y update && apt-get -y install build-essential bison ruby \
ruby-dev rake zlib1g-dev libyaml-dev libssl-dev libreadline-dev \
libncurses5-dev llvm-3.5 llvm-3.5-dev libeditline-dev libedit-dev
ADD https://rubinius-binaries-rubinius-com.s3-us-west-2.amazonaws.com/ubuntu/15.10/x86_64/rubinius-3.0.tar.bz2 /tmp/rubinius.tar.bz2
RUN apt-get -y install bzip2 && cd /opt && tar xvjf /tmp/rubinius.tar.bz2

RUN gem install bundler
ENV PATH /opt/rubinius/3.0/bin:/opt/rubinius/3.0/gems/bin:$PATH

RUN apt-get -y install wget && \
wget http://releases.rubinius.com/rubinius-3.0.tar.bz2 \
-O /tmp/rubinius.tar.bz2

RUN locale-gen en_US.UTF-8
RUN dpkg-reconfigure locales
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8

RUN cd /tmp && tar jxf rubinius.tar.bz2 && rm *.tar.bz2 && cd rubinius-* && \
bundle install && \
./configure --prefix=/opt/rubinius \
--llvm-config=/usr/bin/llvm-config-3.5 && \
rake build && \
rake install && \
cd /tmp && rm -rf rubinius-*

ENV PATH /opt/rubinius/bin:/opt/rubinius/gems/bin:$PATH
CMD ["bash"]

0 comments on commit 577f123

Please sign in to comment.