Sign inSign up

nextrevolution/camp-ruby

By nextrevolution

•Updated about 7 years ago

Image
0

178

nextrevolution/camp-ruby repository overview

⁠CentOS7にRuby2.6.3をインストール

FROM centos:7

⁠教材用として入れておく

RUN yum install -y man nano less

ENV RUBY_VER="2.6.3"

⁠必要な物をインストール

RUN yum -y update; yum -y install epel-release; yum -y install git make autoconf curl wget; yum -y install gcc-c++ glibc-headers openssl-devel readline libyaml-devel readline-devel zlib zlib-devel sqlite-devel bzip2
RUN yum clean all

⁠rubyとbundleをダウンロード

RUN git clone https://github.com/sstephenson/rbenv.git⁠ /usr/local/rbenv RUN git clone https://github.com/sstephenson/ruby-build.git⁠ /usr/local/rbenv/plugins/ruby-build

⁠コマンドでrbenvが使えるように設定

RUN echo 'export RBENV_ROOT="/usr/local/rbenv"' >> /etc/profile.d/rbenv.sh RUN echo 'export PATH="${RBENV_ROOT}/bin:${PATH}"' >> /etc/profile.d/rbenv.sh RUN echo 'eval "$(rbenv init --no-rehash -)"' >> /etc/profile.d/rbenv.sh

⁠rubyとrailsをインストール

RUN source /etc/profile.d/rbenv.sh; rbenv install ${RUBY_VER}; rbenv global ${RUBY_VER}

Tag summary

Content type

Image

Digest

Size

293.9 MB

Last updated

about 7 years ago

docker pull nextrevolution/camp-ruby