From 9bee40a9935525fe57aa35a55e931be4cc42464f Mon Sep 17 00:00:00 2001 From: Tony Hsu Date: Tue, 4 Jun 2024 11:31:10 +0200 Subject: [PATCH] Update gem version --- .gitlab/Dockerfile-2.7.8 | 6 +++++- .gitlab/Dockerfile-3.0.6 | 6 +++++- .gitlab/Dockerfile-3.1.4 | 6 +++++- .gitlab/Dockerfile-3.2.2 | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.gitlab/Dockerfile-2.7.8 b/.gitlab/Dockerfile-2.7.8 index 3d53736129f..6fc4826ffab 100644 --- a/.gitlab/Dockerfile-2.7.8 +++ b/.gitlab/Dockerfile-2.7.8 @@ -1,4 +1,5 @@ -# This is copied from official Docker image, but compile Ruby with `--disable-shared` instead. +# This is copied from official Docker image +# but compile Ruby with `--disable-shared` and update gem version FROM registry.ddbuild.io/images/mirror/buildpack-deps:buster @@ -75,6 +76,9 @@ RUN set -eux; \ # verify we have no "ruby" packages installed if dpkg -l | grep -i ruby; then exit 1; fi; \ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \ + +gem update --system 3.3.27 + # rough smoke test ruby --version; \ gem --version; \ diff --git a/.gitlab/Dockerfile-3.0.6 b/.gitlab/Dockerfile-3.0.6 index d33612bd083..daf2c251a20 100644 --- a/.gitlab/Dockerfile-3.0.6 +++ b/.gitlab/Dockerfile-3.0.6 @@ -1,4 +1,5 @@ -# This is copied from official Docker image, but compile Ruby with `--disable-shared` instead. +# This is copied from official Docker image +# but compile Ruby with `--disable-shared` and update gem version FROM registry.ddbuild.io/images/mirror/buildpack-deps:buster @@ -75,6 +76,9 @@ RUN set -eux; \ # verify we have no "ruby" packages installed if dpkg -l | grep -i ruby; then exit 1; fi; \ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \ + +gem update --system + # rough smoke test ruby --version; \ gem --version; \ diff --git a/.gitlab/Dockerfile-3.1.4 b/.gitlab/Dockerfile-3.1.4 index 867a1f4075e..ed533d1c4b6 100644 --- a/.gitlab/Dockerfile-3.1.4 +++ b/.gitlab/Dockerfile-3.1.4 @@ -1,4 +1,5 @@ -# This is copied from official Docker image, but compile Ruby with `--disable-shared` instead. +# This is copied from official Docker image +# but compile Ruby with `--disable-shared` and update gem version FROM registry.ddbuild.io/images/mirror/buildpack-deps:buster @@ -75,6 +76,9 @@ RUN set -eux; \ # verify we have no "ruby" packages installed if dpkg -l | grep -i ruby; then exit 1; fi; \ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \ + +gem update --system + # rough smoke test ruby --version; \ gem --version; \ diff --git a/.gitlab/Dockerfile-3.2.2 b/.gitlab/Dockerfile-3.2.2 index 20348ab5e70..e377790a74c 100644 --- a/.gitlab/Dockerfile-3.2.2 +++ b/.gitlab/Dockerfile-3.2.2 @@ -1,4 +1,5 @@ -# This is copied from official Docker image, but compile Ruby with `--disable-shared` instead. +# This is copied from official Docker image, but +# compile Ruby with `--disable-shared` and update gem version FROM registry.ddbuild.io/images/mirror/buildpack-deps:buster @@ -99,6 +100,9 @@ RUN set -eux; \ # verify we have no "ruby" packages installed if dpkg -l | grep -i ruby; then exit 1; fi; \ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \ + +gem update --system + # rough smoke test ruby --version; \ gem --version; \