From f1dccf8392a0df875e4601c4a037ddbc9df40611 Mon Sep 17 00:00:00 2001 From: JohnnyKei Date: Fri, 19 Jan 2024 20:28:19 +0900 Subject: [PATCH 1/2] fix: rubygems-update version for Docker rubygems-update version grater than 3.5 required ruby version grater than 3.0.0. ``` > [test-app 3/8] RUN gem update --system: 11.63 ERROR: Error installing rubygems-update: 11.63 There are no versions of rubygems-update (= 3.5.5) compatible with your Ruby & RubyGems 11.63 rubygems-update requires Ruby version >= 3.0.0. The current ruby version is 2.7.8.225. 11.63 ERROR: While executing gem ... (NoMethodError) 11.63 undefined method `version' for nil:NilClass 11.65 Updating rubygems-update ``` Fix rubygems-update version for Docker ruby 2.7. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c8a4a44b..6f03757a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ ENV RAILS_VERSION 7.0.3.1 RUN apt-get update -qq && apt-get install -y nodejs npm # Bugfix for https://github.com/rubyjs/mini_racer/issues/220#issuecomment-1010724771 -RUN gem update --system +RUN gem update --system 3.4.2 # Run docker as a non-root user to avoid having to chown generated files while developing ENV APP_PATH=/rswag/ From f90c8af9d2bd4fd1b0c6ca42bb959615ff6b7587 Mon Sep 17 00:00:00 2001 From: Kei Sato Date: Fri, 2 Feb 2024 18:26:29 +0900 Subject: [PATCH 2/2] chore: update Dockerfile Co-authored-by: Peter Boling --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6f03757a..c554602b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ ENV RAILS_VERSION 7.0.3.1 RUN apt-get update -qq && apt-get install -y nodejs npm # Bugfix for https://github.com/rubyjs/mini_racer/issues/220#issuecomment-1010724771 -RUN gem update --system 3.4.2 +RUN gem update --system 3.4.22 # Run docker as a non-root user to avoid having to chown generated files while developing ENV APP_PATH=/rswag/