Sign inSign up

hnmx4/mysql-ruby

By hnmx4

•Updated about 9 years ago

Ruby and MySQL container, which based mysql:5.7.

Image
0

133

hnmx4/mysql-ruby repository overview

FROM mysql:5.7

RUN apt-get update
RUN apt-get install -y git \
    bzip2 \
    gcc \
    make \
    libssl-dev \
    libreadline6-dev \
    zlib1g-dev \
    sudo \
    aria2 \
    && apt-get clean

# Install rbenv and ruby-build
RUN git clone https://github.com/sstephenson/rbenv.git /root/.rbenv
RUN git clone https://github.com/sstephenson/ruby-build.git /root/.rbenv/plugins/ruby-build
RUN ./root/.rbenv/plugins/ruby-build/install.sh
ENV PATH /root/.rbenv/bin:$PATH
RUN echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh # or /etc/profile
ENV CONFIGURE_OPTS --disable-install-doc

# Install ruby2.3.3
RUN rbenv install 2.3.3
RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc
RUN rbenv global 2.3.3 && rbenv exec gem install bundler && rbenv rehash

Tag summary

Content type

Image

Digest

Size

243.7 MB

Last updated

about 9 years ago

docker pull hnmx4/mysql-ruby:2.3.3