Skip to content

Update Ruby version to 4.0 and adjust related documentation#401

Merged
abdurriq merged 20 commits intodevcontainers:mainfrom
sireeshajonnalagadda:ruby-4.0
Feb 26, 2026
Merged

Update Ruby version to 4.0 and adjust related documentation#401
abdurriq merged 20 commits intodevcontainers:mainfrom
sireeshajonnalagadda:ruby-4.0

Conversation

@sireeshajonnalagadda
Copy link
Contributor

@sireeshajonnalagadda sireeshajonnalagadda commented Feb 12, 2026

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

  1. 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

  2. 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

image

Copy link
Contributor

@Kaniska244 Kaniska244 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sireeshajonnalagadda

Looks fine. Added one comment for test script.

@sireeshajonnalagadda sireeshajonnalagadda marked this pull request as ready for review February 24, 2026 09:58
@sireeshajonnalagadda sireeshajonnalagadda requested a review from a team as a code owner February 24, 2026 09:58
@Kaniska244 Kaniska244 self-requested a review February 24, 2026 13:31
Kaniska244
Kaniska244 previously approved these changes Feb 24, 2026
Copy link

@abdurriq abdurriq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the major versions are not consistent across the files; would appreciate if you could address this.

@Kaniska244 Kaniska244 requested a review from abdurriq February 26, 2026 11:01
abdurriq
abdurriq previously approved these changes Feb 26, 2026
@abdurriq abdurriq merged commit fc23cf4 into devcontainers:main Feb 26, 2026
4 checks passed
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.

3 participants