Public Repository

Last pushed: 2 years ago
Short Description
ruby 2.2.4 running on Centos 7
Full Description
# centos 7 ruby 2.2
# docker login <docker hub>
# docker build -t fareoffice/ruby-2.2 .
# docker push fareoffice/ruby-2.2

FROM fareoffice/base

MAINTAINER "Helgi Kristjansson" <>

RUN yum -y update

# Ruby dependencies
RUN yum -y install gcc gcc-c++ make automake autoconf curl-devel \
  openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel \
  sqlite-devel mysql-devel libyaml-devel patch binutils bison \
  readline readline-devel libffi-devel bzip2 libtool iconv-devel \
  patch binutils
RUN yum -y install which

# Install rvm
RUN curl -sSL | gpg --import -
RUN curl -L | bash -s stable
# Need to set path here for rvm to work
ENV PATH /usr/local/rvm/gems/ruby-2.2.4/bin:/usr/local/rvm/gems/ruby-2.2.4@global/bin:/usr/local/rvm/rubies/ruby-2.2.4/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN /bin/bash -l -c "rvm requirements"
# Install ruby
RUN /bin/bash -l -c "rvm install 2.2.4"
# Install bundler
RUN gem install bundler --no-ri --no-rdoc

# Cleanup
RUN yum clean all
Docker Pull Command