Public Repository

Last pushed: 2 years ago
Short Description
ruby2.1.0,rails4.1.4
Full Description

起動方法

docker run -it tukiyo3/centos6-ja-rails4 /bin/bash

作成手順

docker run -it tukiyo3/centos6-ja /bin/bash

yum install --enablerepo=centosplus -y openssl-devel \
  git wget unzip which mercurial tar gcc gcc-c++ \
  patch libyaml-devel libffi-devel readline-devel \
  zlib-devel automake libtool bison bzip2 \
  mysql-server sqlite-devel

yum clean all

cd /opt/
wget -O - 'http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz' | tar xzf -
cd autoconf*
./configure && make && make install

curl -L get.rvm.io | bash -s stable
export PATH=$PATH:/usr/local/rvm/bin/
rvm install ruby-2.1.0

export PATH=$PATH:/usr/local/rvm/rubies/ruby-2.1.0/bin/
gem install bundler rails --no-ri --no-rdoc

echo export PATH=\$PATH:/usr/local/rvm/rubies/ruby-2.1.0/bin:/usr/local/rvm/bin/ \
    >> $HOME/.bashrc

Dockerfile

FROM tukiyo3/centos6-ja
MAINTAINER tukiyo3 <tukiyo3@gmail.com>

RUN yum install --enablerepo=centosplus -y \
  openssl-devel \
  git wget unzip which mercurial tar gcc gcc-c++ \
  patch libyaml-devel libffi-devel readline-devel \
  zlib-devel automake libtool bison bzip2 \
  mysql-server sqlite-devel

RUN yum clean all

RUN cd /opt && \
    wget -O - 'http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz' | tar xzf -

RUN cd /opt/autoconf* && ./configure && make && make install

RUN curl -L get.rvm.io | bash -s stable
RUN /usr/local/rvm/bin/rvm install ruby-2.1.0

RUN export PATH=$PATH:/usr/local/rvm/rubies/ruby-2.1.0/bin && \
    gem install bundler rails --no-ri --no-rdoc

RUN echo export PATH=\$PATH:/usr/local/rvm/rubies/ruby-2.1.0/bin:/usr/local/rvm/bin/ \
    >> $HOME/.bashrc
Docker Pull Command
Owner
tukiyo3

Comments (0)