1
0
Fork 0
mirror of https://github.com/docker-library/ruby.git synced 2022-11-09 11:41:34 -05:00

Fix wheezy versions with gdbm too

This commit is contained in:
Joe Ferguson 2015-01-21 14:19:35 -08:00
parent fce6523674
commit 8c8394eebf
4 changed files with 20 additions and 28 deletions

View file

@ -1,14 +1,12 @@
FROM buildpack-deps:wheezy FROM buildpack-deps:wheezy
RUN apt-get update && apt-get install -y curl procps && rm -rf /var/lib/apt/lists/*
ENV RUBY_MAJOR 1.9 ENV RUBY_MAJOR 1.9
ENV RUBY_VERSION 1.9.3-p551 ENV RUBY_VERSION 1.9.3-p551
# some of ruby's build scripts are written in ruby # some of ruby's build scripts are written in ruby
# we purge this later to make sure our final image uses what we just built # we purge this later to make sure our final image uses what we just built
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y bison ruby \ && apt-get install -y bison libgdbm-dev ruby \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/ruby \ && mkdir -p /usr/src/ruby \
&& curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \ && curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \
@ -17,8 +15,8 @@ RUN apt-get update \
&& autoconf \ && autoconf \
&& ./configure --disable-install-doc \ && ./configure --disable-install-doc \
&& make \ && make \
&& apt-get purge -y --auto-remove bison ruby \
&& make install \ && make install \
&& apt-get purge -y --auto-remove bison libgdbm-dev ruby \
&& rm -r /usr/src/ruby && rm -r /usr/src/ruby
# skip installing gem documentation # skip installing gem documentation

View file

@ -1,25 +1,23 @@
FROM buildpack-deps:wheezy FROM buildpack-deps:wheezy
RUN apt-get update && apt-get install -y curl procps && rm -rf /var/lib/apt/lists/*
ENV RUBY_MAJOR 2.0 ENV RUBY_MAJOR 2.0
ENV RUBY_VERSION 2.0.0-p598 ENV RUBY_VERSION 2.0.0-p598
# some of ruby's build scripts are written in ruby # some of ruby's build scripts are written in ruby
# we purge this later to make sure our final image uses what we just built # we purge this later to make sure our final image uses what we just built
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y bison ruby \ && apt-get install -y bison libgdbm-dev ruby \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/ruby \ && mkdir -p /usr/src/ruby \
&& curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \ && curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \
| tar -xjC /usr/src/ruby --strip-components=1 \ | tar -xjC /usr/src/ruby --strip-components=1 \
&& cd /usr/src/ruby \ && cd /usr/src/ruby \
&& autoconf \ && autoconf \
&& ./configure --disable-install-doc \ && ./configure --disable-install-doc \
&& make -j"$(nproc)" \ && make -j"$(nproc)" \
&& apt-get purge -y --auto-remove bison ruby \ && make install \
&& make install \ && apt-get purge -y --auto-remove bison libgdbm-dev ruby \
&& rm -r /usr/src/ruby && rm -r /usr/src/ruby
# skip installing gem documentation # skip installing gem documentation
RUN echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc" RUN echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc"
@ -28,8 +26,8 @@ RUN echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc"
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$PATH
RUN gem install bundler \ RUN gem install bundler \
&& bundle config --global path "$GEM_HOME" \ && bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" && bundle config --global bin "$GEM_HOME/bin"
# don't create ".bundle" in all our apps # don't create ".bundle" in all our apps
ENV BUNDLE_APP_CONFIG $GEM_HOME ENV BUNDLE_APP_CONFIG $GEM_HOME

View file

@ -1,14 +1,12 @@
FROM buildpack-deps:wheezy FROM buildpack-deps:wheezy
RUN apt-get update && apt-get install -y curl procps && rm -rf /var/lib/apt/lists/*
ENV RUBY_MAJOR 2.1 ENV RUBY_MAJOR 2.1
ENV RUBY_VERSION 2.1.5 ENV RUBY_VERSION 2.1.5
# some of ruby's build scripts are written in ruby # some of ruby's build scripts are written in ruby
# we purge this later to make sure our final image uses what we just built # we purge this later to make sure our final image uses what we just built
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y bison ruby \ && apt-get install -y bison libgdbm-dev ruby \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/ruby \ && mkdir -p /usr/src/ruby \
&& curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \ && curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \
@ -17,8 +15,8 @@ RUN apt-get update \
&& autoconf \ && autoconf \
&& ./configure --disable-install-doc \ && ./configure --disable-install-doc \
&& make -j"$(nproc)" \ && make -j"$(nproc)" \
&& apt-get purge -y --auto-remove bison ruby \
&& make install \ && make install \
&& apt-get purge -y --auto-remove bison libgdbm-dev ruby \
&& rm -r /usr/src/ruby && rm -r /usr/src/ruby
# skip installing gem documentation # skip installing gem documentation

View file

@ -1,14 +1,12 @@
FROM buildpack-deps:wheezy FROM buildpack-deps:wheezy
RUN apt-get update && apt-get install -y curl procps && rm -rf /var/lib/apt/lists/*
ENV RUBY_MAJOR 2.2 ENV RUBY_MAJOR 2.2
ENV RUBY_VERSION 2.2.0 ENV RUBY_VERSION 2.2.0
# some of ruby's build scripts are written in ruby # some of ruby's build scripts are written in ruby
# we purge this later to make sure our final image uses what we just built # we purge this later to make sure our final image uses what we just built
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y bison ruby \ && apt-get install -y bison libgdbm-dev ruby \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/ruby \ && mkdir -p /usr/src/ruby \
&& curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \ && curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \
@ -17,8 +15,8 @@ RUN apt-get update \
&& autoconf \ && autoconf \
&& ./configure --disable-install-doc \ && ./configure --disable-install-doc \
&& make -j"$(nproc)" \ && make -j"$(nproc)" \
&& apt-get purge -y --auto-remove bison ruby \
&& make install \ && make install \
&& apt-get purge -y --auto-remove bison libgdbm-dev ruby \
&& rm -r /usr/src/ruby && rm -r /usr/src/ruby
# skip installing gem documentation # skip installing gem documentation