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

Generalize FROM so updates flow easier

This commit is contained in:
Tianon Gravi 2015-08-19 11:55:20 -07:00
parent de575f3b8e
commit 5d04363db6
4 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

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

View file

@ -33,6 +33,6 @@ for version in "${versions[@]}"; do
s/^(ENV BUNDLER_VERSION) .*/\1 '"$bundler"'/; s/^(ENV BUNDLER_VERSION) .*/\1 '"$bundler"'/;
s/^(ENV RUBYGEMS_VERSION) .*/\1 '"$rubygems"'/; s/^(ENV RUBYGEMS_VERSION) .*/\1 '"$rubygems"'/;
' "$version/"{,slim/}Dockerfile ' "$version/"{,slim/}Dockerfile
sed -ri 's/^(FROM ruby):.*/\1:'"$fullVersion"'/' "$version/"*"/Dockerfile" sed -ri 's/^(FROM ruby):.*/\1:'"$version"'/' "$version/"*"/Dockerfile"
) )
done done