Update Ruby version to 4.0 and adjust related documentation#401
Merged
abdurriq merged 20 commits intodevcontainers:mainfrom Feb 26, 2026
Merged
Update Ruby version to 4.0 and adjust related documentation#401abdurriq merged 20 commits intodevcontainers:mainfrom
abdurriq merged 20 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.
Kaniska244
previously approved these changes
Feb 24, 2026
abdurriq
reviewed
Feb 24, 2026
abdurriq
reviewed
Feb 24, 2026
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.
abdurriq
reviewed
Feb 25, 2026
abdurriq
reviewed
Feb 25, 2026
abdurriq
reviewed
Feb 25, 2026
abdurriq
reviewed
Feb 26, 2026
abdurriq
previously approved these changes
Feb 26, 2026
abdurriq
approved these changes
Feb 26, 2026
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
The previous network_mode: service:db caused container startup failures in automated environments
This approach is more reliable and works consistently across different deployment scenarios
Test Script Improvements
Comments Added