Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Commit 39c67c7

Browse files
authored
feat: Update Ruby versions (#222)
1 parent 678755e commit 39c67c7

6 files changed

Lines changed: 16 additions & 26 deletions

File tree

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
minitest (5.14.2)
5-
minitest-focus (1.2.1)
4+
minitest (5.15.0)
5+
minitest-focus (1.3.1)
66
minitest (>= 4, < 6)
77
minitest-rg (5.2.0)
88
minitest (~> 5.0)

Rakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
RUNTIME_PROJECT="gcp-runtimes"
1818
BUNDLER1_VERSION="1.17.3"
1919
BUNDLER2_VERSION="2.1.4"
20-
DEFAULT_RUBY_VERSION="2.6.9"
21-
NODEJS_VERSION="14.16.1"
22-
GCLOUD_VERSION="334.0.0"
20+
DEFAULT_RUBY_VERSION="2.7.6"
21+
NODEJS_VERSION="16.15.0"
22+
GCLOUD_VERSION="387.0.0"
2323
OS_NAME="ubuntu16"
2424

25-
LOCAL_PREBUILT_RUBY_VERSIONS=["2.5.9", "2.6.9", "2.7.5", "3.0.3"]
25+
LOCAL_PREBUILT_RUBY_VERSIONS=["2.6.10", "2.7.6", "3.0.4", "3.1.1"]
2626
LOCAL_PREBUILT_RUBY_IMAGE_BASE="ruby-prebuilt-"
2727
LOCAL_PREBUILT_RUBY_IMAGE_TAG="latest"
2828
RELEASED_PREBUILT_RUBY_VERSIONS=::File.readlines("ruby-pipeline/ruby-latest.yaml")

build-ruby-runtime-images.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
# This is the Ruby version that is installed in the "basic" convenience image
1919
# and that is used to run generate-dockerfile. It is NOT the same as the Ruby
2020
# version used by the runtime by default if one is not specified by the app.
21-
BASIC_RUBY_VERSION=2.7.5
21+
BASIC_RUBY_VERSION=2.7.6
2222

2323
BUNDLER1_VERSION=1.17.3
2424
BUNDLER2_VERSION=2.1.4
25-
NODEJS_VERSION=14.16.1
26-
GCLOUD_VERSION=334.0.0
25+
NODEJS_VERSION=16.15.0
26+
GCLOUD_VERSION=387.0.0
2727

2828

2929
set -e

ruby-pipeline/ruby-latest.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,23 @@ steps:
6262
'--prebuilt-image=2.6.7=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-2.6.7:latest',
6363
'--prebuilt-image=2.6.8=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-2.6.8:latest',
6464
'--prebuilt-image=2.6.9=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-2.6.9:latest',
65+
'--prebuilt-image=2.6.10=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-2.6.10:latest',
6566
'--prebuilt-image=2.7.0=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-2.7.0:latest',
6667
'--prebuilt-image=2.7.1=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-2.7.1:latest',
6768
'--prebuilt-image=2.7.2=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-2.7.2:latest',
6869
'--prebuilt-image=2.7.3=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-2.7.3:latest',
6970
'--prebuilt-image=2.7.4=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-2.7.4:latest',
7071
'--prebuilt-image=2.7.5=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-2.7.5:latest',
72+
'--prebuilt-image=2.7.6=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-2.7.6:latest',
7173
'--prebuilt-image=3.0.0=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-3.0.0:latest',
7274
'--prebuilt-image=3.0.1=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-3.0.1:latest',
7375
'--prebuilt-image=3.0.2=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-3.0.2:latest',
7476
'--prebuilt-image=3.0.3=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-3.0.3:latest',
75-
'--default-ruby-version=2.7.5']
77+
'--prebuilt-image=3.0.4=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-3.0.4:latest',
78+
'--prebuilt-image=3.1.0=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-3.1.0:latest',
79+
'--prebuilt-image=3.1.1=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-3.1.1:latest',
80+
'--prebuilt-image=3.1.2=gcr.io/gcp-runtimes/ruby/ubuntu16/prebuilt/ruby-3.1.2:latest',
81+
'--default-ruby-version=2.7.6']
7682
- name: 'gcr.io/cloud-builders/docker:latest'
7783
args: ['build', '--network=cloudbuild', '-t', '$_OUTPUT_IMAGE', '.']
7884
images:

test/test_base_image_sample_apps.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,6 @@ def test_rack_app
4242
DOCKERFILE
4343
end
4444

45-
def test_rails4_app
46-
run_app_test "rails4_app", <<~DOCKERFILE
47-
FROM ruby-base
48-
COPY . /app/
49-
RUN bundle install && rbenv rehash
50-
ENV SECRET_KEY_BASE=a12345
51-
ENTRYPOINT bundle exec bin/rails server -p 8080
52-
DOCKERFILE
53-
end
54-
5545
end
5646

5747
def test_rails5_app

test/test_sample_app_builds.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ def test_rack_app
3131
end
3232
end
3333

34-
def test_rails4_app
35-
run_app_test "rails4_app" do |image|
36-
assert_docker_output "#{image} test -d /app/public/assets", nil
37-
end
38-
end
39-
4034
end
4135

4236
def test_sinatra1_app

0 commit comments

Comments
 (0)