-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from tomohiro/support-ruby-2.7
Update Ruby version to 2.7.0
- Loading branch information
Showing
10 changed files
with
23 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.6.5 | ||
2.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ sudo: false | |
|
||
language: ruby | ||
rvm: | ||
- 2.6.5 | ||
- 2.7.0 | ||
|
||
cache: bundler | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
# Build for install dependency RubyGems | ||
FROM ruby:2.6.5-alpine3.10 AS bundle | ||
FROM ruby:2.7.0-alpine3.11 AS bundle | ||
|
||
COPY Gemfile . | ||
COPY Gemfile.lock . | ||
|
||
RUN set -ex \ | ||
&& apk add --update --no-cache build-base=0.5-r1 \ | ||
&& bundle install --frozen --jobs=4 --without="test:development" \ | ||
&& bundle config frozen true \ | ||
&& bundle install --jobs=4 --without="test:development" \ | ||
&& rm -rf "${BUNDLE_PATH}/cache/*" | ||
|
||
# Build for Sinatra app | ||
FROM ruby:2.6.5-alpine3.10 | ||
COPY --from=bundle /usr/local/bundle /usr/local/bundle | ||
FROM ruby:2.7.0-alpine3.11 | ||
COPY --from=bundle ${BUNDLE_PATH} ${BUNDLE_PATH} | ||
|
||
ENV RACK_ENV=deployment | ||
|
||
WORKDIR /usr/src/app | ||
COPY . . | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT ["rackup"] | ||
CMD ["--host", "0.0.0.0", "-p", "8080"] | ||
ENTRYPOINT ["bundle"] | ||
CMD ["exec", "rackup", "--host", "0.0.0.0", "-p", "8080"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
ruby '2.6.5' | ||
ruby '2.7.0' | ||
|
||
gem 'fluentd' | ||
gem 'haml' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,7 +115,7 @@ DEPENDENCIES | |
sinatra | ||
|
||
RUBY VERSION | ||
ruby 2.6.5p114 | ||
ruby 2.7.0p0 | ||
|
||
BUNDLED WITH | ||
1.17.2 | ||
2.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters