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

Update script for wheezy versions, bump 2.2 to rc1

This commit is contained in:
Joe Ferguson 2014-12-18 15:02:39 -08:00
parent c7bf9b80c7
commit 991bdc9cfb
4 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@ FROM buildpack-deps:jessie
RUN apt-get update && apt-get install -y curl procps && rm -rf /var/lib/apt/lists/*
ENV RUBY_MAJOR 2.2
ENV RUBY_VERSION 2.2.0-preview2
ENV RUBY_VERSION 2.2.0-rc1
# 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

View file

@ -1,4 +1,4 @@
FROM ruby:2.2.0-preview2
FROM ruby:2.2.0-rc1
# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1

View file

@ -3,7 +3,7 @@ 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_VERSION 2.2.0-preview2
ENV RUBY_VERSION 2.2.0-rc1
# 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

View file

@ -17,8 +17,8 @@ for version in "${versions[@]}"; do
| sort -V | tail -1)"
(
set -x
sed -ri 's/^(ENV RUBY_MAJOR) .*/\1 '"$version"'/' "$version/Dockerfile"
sed -ri 's/^(ENV RUBY_VERSION) .*/\1 '"$fullVersion"'/' "$version/Dockerfile"
sed -ri 's/^(ENV RUBY_MAJOR) .*/\1 '"$version"'/' "$version/"{,wheezy/}Dockerfile
sed -ri 's/^(ENV RUBY_VERSION) .*/\1 '"$fullVersion"'/' "$version/"{,wheezy/}Dockerfile
sed -ri 's/^(FROM ruby):.*/\1:'"$fullVersion"'/' "$version/"*"/Dockerfile"
)
done