Conversation
| RUN apt-add-repository ppa:brightbox/ruby-ng \ | ||
| && apt-get update \ | ||
| && apt-get install -y --no-install-recommends ruby2.7 ruby2.7-dev \ | ||
| && apt-get install -y --no-install-recommends ruby2.7.6 ruby2.7.6-dev \ |
There was a problem hiding this comment.
I don't think Brightbox nor Ubuntu provides these packages. I think the way to upgrade would be to migrate to ubuntu 22.04, which provides Ruby 3. Alternatively, copy installation commands from the official docker Ruby images, which would give more flexibility on the version that we use.
There was a problem hiding this comment.
FWIW, the 22.04 upgrade is already tracked in #5030, although even once CI passes there may be some internal-to-GitHub issues like packaging or security that may delay upgrading.
Ruby 3 is an interesting idea, but probably a bigger conversation. I'll try to remember to check with the rest of the team this coming week to see what the current plan is re: moving to Ruby 3.
There was a problem hiding this comment.
I see.
Regardless of the update to 22.04 and/or to Ruby 3, it would seem like a good move to migrate to Ruby 2.7.6, the latest security release in the 2.7 series.
In order to achieve that, I think the best way would be to move away from Brightbox. The alternatives I can think of are:
- Build from source like the official Ruby docker images do: https://github.com/docker-library/ruby/blob/ac24ae0a894606d3ac91c28095db39e69771cac4/2.7/slim-bullseye/Dockerfile. I think this is the most flexible but least maintainable option.
- Use ruby-build. This might be a good middleground?
There was a problem hiding this comment.
Apologies. I meant to add a comment explaining that this was meant fo open the conversation about the upgrade. I wanted to see the feedback from the CI
No description provided.