From 9c85eebe5bf307dde7fd27df1729a85e7bdcf339 Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Tue, 2 Jan 2024 11:29:26 -0600 Subject: [PATCH] add comment on why installing certain version of rubygems-update --- Dockerfile | 1 + Dockerfile.dev | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 27b2d6536..81a31e01a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,7 @@ ADD ./Gemfile /rails_app/ ADD ./Gemfile.lock /rails_app/ RUN bundle config --global jobs `cat /proc/cpuinfo | grep processor | wc -l | xargs -I % expr % - 1` +# Newest versions of rubygems-update is not compatible with Ruby2.7 (Only compatible with Ruby 3+) RUN gem i "rubygems-update:~>3.4.22" --no-document && update_rubygems RUN bundle install --without development test diff --git a/Dockerfile.dev b/Dockerfile.dev index d7d98a719..c3505276d 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -19,6 +19,7 @@ ADD ./Gemfile /rails_app/ ADD ./Gemfile.lock /rails_app/ RUN bundle config --global jobs `cat /proc/cpuinfo | grep processor | wc -l | xargs -I % expr % - 1` +# Newest versions of rubygems-update is not compatible with Ruby2.7 (Only compatible with Ruby 3+) RUN gem i "rubygems-update:~>3.4.22" --no-document && update_rubygems RUN bundle install