Skip to content

Commit ca0a1b3

Browse files
update ruby and bundle version (#2503)
* update ruby and bundle version * Update docs/serving/samples/hello-world/helloworld-ruby/Gemfile.lock Co-authored-by: Matt Moore <[email protected]> * update README Co-authored-by: Matt Moore <[email protected]>
1 parent fbf41f0 commit ca0a1b3

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

docs/serving/samples/hello-world/helloworld-ruby/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Use the official lightweight Ruby image.
22
# https://hub.docker.com/_/ruby
3-
FROM ruby:2.5-slim
3+
FROM ruby:2.6-slim
44

55
# Install production dependencies.
66
WORKDIR /usr/src/app
77
COPY Gemfile Gemfile.lock ./
88
ENV BUNDLE_FROZEN=true
9-
RUN bundle install
9+
RUN gem install bundler && bundle install
1010

1111
# Copy local code to the container image.
1212
COPY . ./
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
mustermann (1.0.2)
5-
rack (2.0.8)
6-
rack-protection (2.0.3)
4+
mustermann (1.1.1)
5+
ruby2_keywords (~> 0.0.1)
6+
rack (2.2.2)
7+
rack-protection (2.0.8.1)
78
rack
8-
sinatra (2.0.3)
9+
ruby2_keywords (0.0.2)
10+
sinatra (2.0.8.1)
911
mustermann (~> 1.0)
1012
rack (~> 2.0)
11-
rack-protection (= 2.0.3)
13+
rack-protection (= 2.0.8.1)
1214
tilt (~> 2.0)
13-
tilt (2.0.8)
15+
tilt (2.0.10)
1416

1517
PLATFORMS
1618
ruby
@@ -20,4 +22,4 @@ DEPENDENCIES
2022
sinatra
2123

2224
BUNDLED WITH
23-
1.17.1
25+
2.1.4

docs/serving/samples/hello-world/helloworld-ruby/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-ruby
4848
```docker
4949
# Use the official lightweight Ruby image.
5050
# https://hub.docker.com/_/ruby
51-
FROM ruby:2.5-slim
51+
FROM ruby:2.6-slim
5252
5353
# Install production dependencies.
5454
WORKDIR /usr/src/app
5555
COPY Gemfile Gemfile.lock ./
5656
ENV BUNDLE_FROZEN=true
57-
RUN bundle install
57+
RUN gem install bundler && bundle install
5858
5959
# Copy local code to the container image.
6060
COPY . ./

0 commit comments

Comments
 (0)