Skip to content
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

use rbenv+ruby-build instead of rvm #110

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

flavorjones
Copy link
Collaborator

@flavorjones flavorjones commented Dec 18, 2023

While working on #75 I found that RVM has issues on Alpine, specifically rvm/rvm#5255

Now, while we could probably use another musl-based image (and not Alpine specifically, since the RVM problem is really related to Alpine's use of busybox), I will point out that ruby-build appears to be more actively maintained than rvm, is simpler, and is a bit easier to work with. So I think this is a good change regardless (pending green tests).

Changes:

  • user rvm no longer exists, replaced by rubyuser
  • rvm has been replaced by rbenv and ruby-build
    • no longer applying the sendfile patches to Ruby
    • no longer updating gems belonging to the bootstrap rubies

Also in this PR, I've updated the predefined user and group lists to be the superset of all our images.

@flavorjones flavorjones force-pushed the flavorjones-202312-try-rbenv-and-ruby-build branch 3 times, most recently from 75846f9 to 6018b4d Compare December 18, 2023 23:52
@flavorjones flavorjones force-pushed the flavorjones-202312-try-rbenv-and-ruby-build branch from 6018b4d to 79e3bd7 Compare December 28, 2023 15:50
@flavorjones
Copy link
Collaborator Author

@larskanis are you OK with this change? can you let me know if you have concerns or want to get on a call to discuss it?

@larskanis
Copy link
Member

Sorry @flavorjones for the delay! In general I'm fine with the change.

The sendfile patches were necessary for VirtualBox. I guess this is still the case, but VirtualBox emulation for docker is not very common these days. So we can remove them.

In any case: Great work!

Dockerfile.mri.erb Outdated Show resolved Hide resolved
- user `rvm` no longer exists, replaced by `rubyuser`
- `rvm` has been replaced by `rbenv` and `ruby-build`
  - no longer applying the sendfile patches to Ruby
  - no longer updating gems belonging to the bootstrap rubies
@flavorjones flavorjones force-pushed the flavorjones-202312-try-rbenv-and-ruby-build branch from 79e3bd7 to 9e321ca Compare January 2, 2024 21:37
@flavorjones flavorjones merged commit f4f1888 into main Jan 2, 2024
56 checks passed
@flavorjones flavorjones deleted the flavorjones-202312-try-rbenv-and-ruby-build branch January 2, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants