From 34233698350c0b954f7fd3dbf3d48d743d3f4799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 22 Apr 2022 16:43:18 +0200 Subject: [PATCH 1/2] Update RubyGems to 3.3.11 The idea is to always update to the latest 3.3.x RubyGems when updating Bundler, since it provides Bundler 2.2.x by default, so it updates it automatically. However, for now I lock it to 3.3.11 because 3.3.12 has a bug the could potentially affect Dependabot. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9e6939a6da..a3d10cea16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,7 +76,7 @@ ENV PATH="$BUNDLE_BIN:$PATH:$BUNDLE_PATH/bin" RUN apt-add-repository ppa:brightbox/ruby-ng \ && apt-get update \ && apt-get install -y --no-install-recommends ruby2.7 ruby2.7-dev \ - && gem update --system 3.2.20 \ + && gem update --system 3.3.11 \ && gem install bundler -v 1.17.3 --no-document \ && gem install bundler -v 2.3.12 --no-document \ && rm -rf /var/lib/gems/2.7.0/cache/* \ From 1fb6706dac3663a5050d26ab4de41162ea00e164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 22 Apr 2022 16:45:13 +0200 Subject: [PATCH 2/2] Also use `--no-document` for updating RubyGems --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a3d10cea16..d5850f8ba3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,7 +76,7 @@ ENV PATH="$BUNDLE_BIN:$PATH:$BUNDLE_PATH/bin" RUN apt-add-repository ppa:brightbox/ruby-ng \ && apt-get update \ && apt-get install -y --no-install-recommends ruby2.7 ruby2.7-dev \ - && gem update --system 3.3.11 \ + && gem update --system 3.3.11 --no-document \ && gem install bundler -v 1.17.3 --no-document \ && gem install bundler -v 2.3.12 --no-document \ && rm -rf /var/lib/gems/2.7.0/cache/* \