Public Repository

Last pushed: a year ago
Short Description
A ruby container with a centos:latest base
Full Description

centos-ruby

Centos and Ruby Versions

  • Builds Ruby 2.3 (ruby-2.3.0) from source.
    • Checks ruby-lang.org's provided hash before building.
  • Base is CentOS 7.2 (centos:latest)
[root@38b376fb0f5c /]# cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)
[root@38b376fb0f5c /]# ruby --version
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]

Image Versions

elijahcaine/centos-ruby:<ruby version>

I only deal with the latest stable version of Ruby. I might branch out, but this is part of a tool-chain and so is created entirely out of necessity.

Dockerfile

FROM centos:latest

MAINTAINER voigte@osuosl.org

RUN yum -y groupinstall "Development Tools"
RUN yum -y install openssl zlib-devel openssl-devel

WORKDIR /tmp/

RUN curl https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.gz -o /tmp/ruby-2.3.0.tar.gz
RUN echo "ba5ba60e5f1aa21b4ef8e9bf35b9ddb57286cb546aac4b5a28c71f459467e507 /tmp/ruby-2.3.0.tar.gz" > /tmp/ruby-2.3.0-sha256sum
RUN sha256sum -c /tmp/ruby-2.3.0-sha256sum
RUN tar xf /tmp/ruby-2.3.0.tar.gz
RUN /tmp/ruby-2.3.0/configure
RUN make
RUN make install

RUN rm -rf /tmp/*

WORKDIR /

CMD ruby --version
Docker Pull Command
Owner
elijahcaine

Comments (0)