-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade/ruby 2 3 rails 5 2 #210
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the kind of upgrade that I like. Upgrade, nothing much breaks, and you can cleanup legacy fixes 🥳
Dockerfile
Outdated
# Update to a newer Debian version if needed | ||
# The below lines are for Debian Stretch, consider updating to Buster or Bullseye | ||
RUN echo 'deb http://deb.debian.org/debian/ buster main\n\ | ||
deb http://security.debian.org/debian-security buster/updates main' > /etc/apt/sources.list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove these: debian:buster
is maintained 🥳
# Update to a newer Debian version if needed | |
# The below lines are for Debian Stretch, consider updating to Buster or Bullseye | |
RUN echo 'deb http://deb.debian.org/debian/ buster main\n\ | |
deb http://security.debian.org/debian-security buster/updates main' > /etc/apt/sources.list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might even be able to remove the let's encrypt CA fix above (maybe).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above applies to Dockerfile-dev
also :)
Gemfile
Outdated
@@ -1,12 +1,12 @@ | |||
source 'https://rubygems.org' | |||
|
|||
# frameworks | |||
gem 'rails', '~> 5.0.0', '>= 5.0.0.1' | |||
gem 'rails', '~> 5.2.Z', '>= 5.2.8.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is enough:
gem 'rails', '~> 5.2.Z', '>= 5.2.8.1' | |
gem 'rails', '~> 5.2.8' |
This allows to select any 5.2.x version starting from 5.2.8 and above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Upgrades the project to Ruby 2.7 & Rails 5.2.
It was developed on top of the previous pull request (import resmap collection) and it should be merged properly after the other PR is approved.
Upgrades:
Some gem versions have to be fixed and just a few tweaks were needed, building pipeline are working OK.