Skip to content

Commit

Permalink
Ensure rubygems + bundler + rake versions consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
lloeki committed Nov 14, 2024
1 parent 42bf80e commit 2fc59db
Show file tree
Hide file tree
Showing 15 changed files with 120 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/engines/jruby/9.2/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,13 @@ ENV PATH /opt/jruby/bin:$PATH
RUN mkdir -p /opt/jruby/etc \
&& echo -e 'install: --no-document\nupdate: --no-document' >> /opt/jruby/etc/gemrc

## Install a pinned RubyGems and Bundler
RUN gem update --system 3.3.26
RUN gem install bundler:2.3.26

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.2.1

# Start IRB as a default
CMD [ "irb" ]
8 changes: 8 additions & 0 deletions src/engines/jruby/9.3/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,13 @@ ENV PATH /opt/jruby/bin:$PATH
RUN mkdir -p /opt/jruby/etc \
&& echo -e 'install: --no-document\nupdate: --no-document' >> /opt/jruby/etc/gemrc

## Install a pinned RubyGems and Bundler
RUN gem update --system 3.3.26
RUN gem install bundler:2.3.26

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.2.1

# Start IRB as a default
CMD [ "irb" ]
8 changes: 8 additions & 0 deletions src/engines/jruby/9.4/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,13 @@ ENV PATH /opt/jruby/bin:$PATH
RUN mkdir -p /opt/jruby/etc \
&& echo -e 'install: --no-document\nupdate: --no-document' >> /opt/jruby/etc/gemrc

## Install a pinned RubyGems and Bundler
RUN gem update --system 3.3.26
RUN gem install bundler:2.3.26

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.2.1

# Start IRB as a default
CMD [ "irb" ]
8 changes: 8 additions & 0 deletions src/engines/ruby/2.1/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ ARG REPRO_RUN_KEY=0
# images) should not do `apk update`, instead this base image should be
# updated by changing the `REPRO_RUN_KEY`.
RUN true "${REPRO_RUN_KEY}" && apk update

## Install a pinned RubyGems and Bundler
RUN gem update --system 2.7.11
RUN gem install bundler --version 1.17.3

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:12.3.3
8 changes: 8 additions & 0 deletions src/engines/ruby/2.2/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ ARG REPRO_RUN_KEY=0
# images) should not do `apk update`, instead this base image should be
# updated by changing the `REPRO_RUN_KEY`.
RUN true "${REPRO_RUN_KEY}" && apk update

## Install a pinned RubyGems and Bundler
RUN gem update --system 2.7.11
RUN gem install bundler --version 1.17.3

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.0.6
8 changes: 8 additions & 0 deletions src/engines/ruby/2.3/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ ARG REPRO_RUN_KEY=0
# images) should not do `apk update`, instead this base image should be
# updated by changing the `REPRO_RUN_KEY`.
RUN true "${REPRO_RUN_KEY}" && apk update

## Install a pinned RubyGems and Bundler
RUN gem update --system 3.3.26
RUN gem install bundler:2.3.26

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.2.1
8 changes: 8 additions & 0 deletions src/engines/ruby/2.4/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ ARG REPRO_RUN_KEY=0
# images) should not do `apk update`, instead this base image should be
# updated by changing the `REPRO_RUN_KEY`.
RUN true "${REPRO_RUN_KEY}" && apk update

## Install a pinned RubyGems and Bundler
RUN gem update --system 3.3.26
RUN gem install bundler:2.3.26

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.2.1
8 changes: 8 additions & 0 deletions src/engines/ruby/2.5/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ ARG REPRO_RUN_KEY=0
# images) should not do `apk update`, instead this base image should be
# updated by changing the `REPRO_RUN_KEY`.
RUN true "${REPRO_RUN_KEY}" && apk update

## Install a pinned RubyGems and Bundler
RUN gem update --system 3.3.26
RUN gem install bundler:2.3.26

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.2.1
8 changes: 8 additions & 0 deletions src/engines/ruby/2.6/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ ARG REPRO_RUN_KEY=0
# images) should not do `apk update`, instead this base image should be
# updated by changing the `REPRO_RUN_KEY`.
RUN true "${REPRO_RUN_KEY}" && apk update

## Install a pinned RubyGems and Bundler
RUN gem update --system 3.3.26
RUN gem install bundler:2.3.26

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.2.1
8 changes: 8 additions & 0 deletions src/engines/ruby/2.7/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ ARG REPRO_RUN_KEY=0
# images) should not do `apk update`, instead this base image should be
# updated by changing the `REPRO_RUN_KEY`.
RUN true "${REPRO_RUN_KEY}" && apk update

## Install a pinned RubyGems and Bundler
RUN gem update --system 3.3.26
RUN gem install bundler:2.3.26

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.2.1
8 changes: 8 additions & 0 deletions src/engines/ruby/3.0/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ ARG REPRO_RUN_KEY=0
# images) should not do `apk update`, instead this base image should be
# updated by changing the `REPRO_RUN_KEY`.
RUN true "${REPRO_RUN_KEY}" && apk update

## Install a pinned RubyGems and Bundler
RUN gem update --system 3.3.26
RUN gem install bundler:2.3.26

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.2.1
8 changes: 8 additions & 0 deletions src/engines/ruby/3.1/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ ARG REPRO_RUN_KEY=0
# images) should not do `apk update`, instead this base image should be
# updated by changing the `REPRO_RUN_KEY`.
RUN true "${REPRO_RUN_KEY}" && apk update

## Install a pinned RubyGems and Bundler
RUN gem update --system 3.3.26
RUN gem install bundler:2.3.26

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.2.1
8 changes: 8 additions & 0 deletions src/engines/ruby/3.2/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ ARG REPRO_RUN_KEY=0
# images) should not do `apk update`, instead this base image should be
# updated by changing the `REPRO_RUN_KEY`.
RUN true "${REPRO_RUN_KEY}" && apk update

## Install a pinned RubyGems and Bundler
RUN gem update --system 3.3.26
RUN gem install bundler:2.3.26

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.2.1
8 changes: 8 additions & 0 deletions src/engines/ruby/3.3/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ ARG REPRO_RUN_KEY=0
# images) should not do `apk update`, instead this base image should be
# updated by changing the `REPRO_RUN_KEY`.
RUN true "${REPRO_RUN_KEY}" && apk update

## Install a pinned RubyGems and Bundler
RUN gem update --system 3.3.26
RUN gem install bundler:2.3.26

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.2.1
8 changes: 8 additions & 0 deletions src/engines/ruby/3.4/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ ARG REPRO_RUN_KEY=0
# images) should not do `apk update`, instead this base image should be
# updated by changing the `REPRO_RUN_KEY`.
RUN true "${REPRO_RUN_KEY}" && apk update

## Install a pinned RubyGems and Bundler
RUN gem update --system 3.3.26
RUN gem install bundler:2.3.26

# Install additional gems that are in CRuby but missing from the above
# JRuby install distribution. These are version-pinned for reproducibility.
RUN gem install rake:13.2.1

0 comments on commit 2fc59db

Please sign in to comment.