Skip to content

Comments

Update Ruby version to 4.0 and adjust related documentation#401

Open
sireeshajonnalagadda wants to merge 17 commits intodevcontainers:mainfrom
sireeshajonnalagadda:ruby-4.0
Open

Update Ruby version to 4.0 and adjust related documentation#401
sireeshajonnalagadda wants to merge 17 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

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.

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"
Copy link
Contributor

Choose a reason for hiding this comment

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

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.

@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
"description": "Ruby version (use - trixie, -bookworm, -bullseye variants on local arm64/Apple Silicon):",
"proposals": [
"3-trixie",
"4.0-trixie",

Choose a reason for hiding this comment

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

Should we not have 4- versions?

"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}"

Choose a reason for hiding this comment

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

Should this not be 4-?

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.

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