Using the Official Ruby Image for Rails Dev Containers
https://t27duck.com/posts/33-using-the-official-ruby-image-for-rails-dev-containersI got tired of waiting for rails/devcontainer to update/release for Ruby 4.0.10, so I dug around and figured out how to use the official Docker hub image instead. One less thing I need to wait to update for when a new Ruby version drops.
18
Upvotes
3
u/ppoint 2d ago
I was also getting tired of waiting for rails/devcontainer to update to 4.0.10. But then I looked at the repo, and saw that they have updated it: https://github.com/rails/devcontainer/commit/40cbbf7803658500f5c9e526accc465cbf300eca
Yet the image isn't available for some reason.
1
u/WixeyAbdolaye 2d ago
Waiting on upstream wrappers to update is always a bottleneck. Make sure you pin the exact OS flavor on the official image though, otherwise an underlying OS bump can quietly break native gem compilation down the road