r/rails • • 2d ago

Using the Official Ruby Image for Rails Dev Containers

https://t27duck.com/posts/33-using-the-official-ruby-image-for-rails-dev-containers

I 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

4 comments sorted by

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/t27duck 2d ago

Update != release, though. Even with that commit someone has to trigger an action to actually build release images.

1

u/ppoint 2d ago

Here's the ticket to follow with updates on the issue... https://github.com/rails/devcontainer/issues/142

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