Update Ruby version to 4.0 and adjust related documentation#401
Open
sireeshajonnalagadda wants to merge 17 commits intodevcontainers:mainfrom
Open
Update Ruby version to 4.0 and adjust related documentation#401sireeshajonnalagadda wants to merge 17 commits intodevcontainers:mainfrom
sireeshajonnalagadda wants to merge 17 commits intodevcontainers:mainfrom
Conversation
… conditional gem installation
Kaniska244
requested changes
Feb 20, 2026
Contributor
Kaniska244
left a comment
There was a problem hiding this comment.
Looks fine. Added one comment for test script.
test/ruby-rails-postgres/test.sh
Outdated
| check "user has write permission to rvm gems default" [ -w /usr/local/rvm/gems/default ] | ||
| check "user can install gems" gem install github-markup | ||
| check "gem command works" gem --version | ||
| check "user can install gems" gem list | grep -q "bundler" |
Contributor
There was a problem hiding this comment.
The description doesn't go well with the actual test done here. Please a separate check for checking the presence of bundler and leave this particular check as-is in the baseline.
Kaniska244
approved these changes
Feb 24, 2026
abdurriq
reviewed
Feb 24, 2026
| "description": "Ruby version (use - trixie, -bookworm, -bullseye variants on local arm64/Apple Silicon):", | ||
| "proposals": [ | ||
| "3-trixie", | ||
| "4.0-trixie", |
abdurriq
reviewed
Feb 24, 2026
| "name": "Ruby", | ||
| // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
| "image": "mcr.microsoft.com/devcontainers/ruby:2-${templateOption:imageVariant}" | ||
| "image": "mcr.microsoft.com/devcontainers/ruby:3-${templateOption:imageVariant}" |
abdurriq
requested changes
Feb 24, 2026
abdurriq
left a comment
There was a problem hiding this comment.
I think the major versions are not consistent across the files; would appreciate if you could address this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the Ruby version to 4.0. During the upgrade process, several issues were encountered, and the necessary changes to resolve them have been implemented. The details of these fixes are outlined below.
Primary Objectives Achieved
Fixed Critical Docker Container Issues https://github.com/devcontainers/templates/actions/runs/22171234642/job/64109405595
Problem: Ruby-rails-postgres template failing with namespace errors and PostgreSQL compatibility issues
Root Cause: network_mode: service:db caused container startup failures in automated environments
Solution: Implemented proper Docker networking with custom bridge networks
Enhanced Template Reliability
Problem: Tests failing due to network dependencies and PostgreSQL version conflicts
Solution:
Technical Changes Implemented
Docker Networking Overhaul
Health Check Implementation
Test Script Improvements
Comments Added