Skip to content

Commit f31b86c

Browse files
committed
Merge branch 'master' of https://github.com/docker-library/ruby into 2.2
2 parents fbd4ada + 11c5f34 commit f31b86c

File tree

5 files changed

+113
-2
lines changed

5 files changed

+113
-2
lines changed

1.9/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM buildpack-deps:wheezy
1+
FROM buildpack-deps:jessie
22

33
RUN apt-get update && apt-get install -y curl procps && rm -rf /var/lib/apt/lists/*
44

1.9/wheezy/Dockerfile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM buildpack-deps:wheezy
2+
3+
RUN apt-get update && apt-get install -y curl procps && rm -rf /var/lib/apt/lists/*
4+
5+
ENV RUBY_MAJOR 1.9
6+
ENV RUBY_VERSION 1.9.3-p551
7+
8+
# some of ruby's build scripts are written in ruby
9+
# we purge this later to make sure our final image uses what we just built
10+
RUN apt-get update \
11+
&& apt-get install -y bison ruby \
12+
&& rm -rf /var/lib/apt/lists/* \
13+
&& mkdir -p /usr/src/ruby \
14+
&& curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \
15+
| tar -xjC /usr/src/ruby --strip-components=1 \
16+
&& cd /usr/src/ruby \
17+
&& autoconf \
18+
&& ./configure --disable-install-doc \
19+
&& make \
20+
&& apt-get purge -y --auto-remove bison ruby \
21+
&& make install \
22+
&& rm -r /usr/src/ruby
23+
24+
# skip installing gem documentation
25+
RUN echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc"
26+
27+
# install things globally, for great justice
28+
ENV GEM_HOME /usr/local/bundle
29+
ENV PATH $GEM_HOME/bin:$PATH
30+
RUN gem install bundler \
31+
&& bundle config --global path "$GEM_HOME" \
32+
&& bundle config --global bin "$GEM_HOME/bin"
33+
34+
# don't create ".bundle" in all our apps
35+
ENV BUNDLE_APP_CONFIG $GEM_HOME
36+
37+
CMD [ "irb" ]

2.0/wheezy/Dockerfile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM buildpack-deps:wheezy
2+
3+
RUN apt-get update && apt-get install -y curl procps && rm -rf /var/lib/apt/lists/*
4+
5+
ENV RUBY_MAJOR 2.0
6+
ENV RUBY_VERSION 2.0.0-p598
7+
8+
# some of ruby's build scripts are written in ruby
9+
# we purge this later to make sure our final image uses what we just built
10+
RUN apt-get update \
11+
&& apt-get install -y bison ruby \
12+
&& rm -rf /var/lib/apt/lists/* \
13+
&& mkdir -p /usr/src/ruby \
14+
&& curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \
15+
| tar -xjC /usr/src/ruby --strip-components=1 \
16+
&& cd /usr/src/ruby \
17+
&& autoconf \
18+
&& ./configure --disable-install-doc \
19+
&& make -j"$(nproc)" \
20+
&& apt-get purge -y --auto-remove bison ruby \
21+
&& make install \
22+
&& rm -r /usr/src/ruby
23+
24+
# skip installing gem documentation
25+
RUN echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc"
26+
27+
# install things globally, for great justice
28+
ENV GEM_HOME /usr/local/bundle
29+
ENV PATH $GEM_HOME/bin:$PATH
30+
RUN gem install bundler \
31+
&& bundle config --global path "$GEM_HOME" \
32+
&& bundle config --global bin "$GEM_HOME/bin"
33+
34+
# don't create ".bundle" in all our apps
35+
ENV BUNDLE_APP_CONFIG $GEM_HOME
36+
37+
CMD [ "irb" ]

2.1/wheezy/Dockerfile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM buildpack-deps:wheezy
2+
3+
RUN apt-get update && apt-get install -y curl procps && rm -rf /var/lib/apt/lists/*
4+
5+
ENV RUBY_MAJOR 2.1
6+
ENV RUBY_VERSION 2.1.5
7+
8+
# some of ruby's build scripts are written in ruby
9+
# we purge this later to make sure our final image uses what we just built
10+
RUN apt-get update \
11+
&& apt-get install -y bison ruby \
12+
&& rm -rf /var/lib/apt/lists/* \
13+
&& mkdir -p /usr/src/ruby \
14+
&& curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \
15+
| tar -xjC /usr/src/ruby --strip-components=1 \
16+
&& cd /usr/src/ruby \
17+
&& autoconf \
18+
&& ./configure --disable-install-doc \
19+
&& make -j"$(nproc)" \
20+
&& apt-get purge -y --auto-remove bison ruby \
21+
&& make install \
22+
&& rm -r /usr/src/ruby
23+
24+
# skip installing gem documentation
25+
RUN echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc"
26+
27+
# install things globally, for great justice
28+
ENV GEM_HOME /usr/local/bundle
29+
ENV PATH $GEM_HOME/bin:$PATH
30+
RUN gem install bundler \
31+
&& bundle config --global path "$GEM_HOME" \
32+
&& bundle config --global bin "$GEM_HOME/bin"
33+
34+
# don't create ".bundle" in all our apps
35+
ENV BUNDLE_APP_CONFIG $GEM_HOME
36+
37+
CMD [ "irb" ]

generate-stackbrew-library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ for version in "${versions[@]}"; do
3131
echo "$va: ${url}@${commit} $version"
3232
done
3333

34-
for variant in onbuild; do
34+
for variant in onbuild wheezy; do
3535
commit="$(git log -1 --format='format:%H' -- "$version/$variant")"
3636
echo
3737
for va in "${versionAliases[@]}"; do

0 commit comments

Comments
 (0)