Skip to content

Sync Ruby template image variants to devcontainers/images ruby v4 - #440

Merged
Abdurrahmaan Iqbal (abdurriq) merged 5 commits into
mainfrom
copilot/sync-template-image-variants
Aug 28, 2026
Merged

Sync Ruby template image variants to devcontainers/images ruby v4#440
Abdurrahmaan Iqbal (abdurriq) merged 5 commits into
mainfrom
copilot/sync-template-image-variants

Conversation

Copilot AI commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

The ruby image in devcontainers/images bumped to major version 4 (manifest 4.0.2), leaving every ruby:3-* tag referenced by the Ruby templates unpublished (MISSING). The v4 image also dropped RVM in favor of ruby-build/rubies, so both the templates and their tests required updating.

Changes

Repin image major 34

  • src/ruby/.devcontainer/devcontainer.json
  • src/ruby-rails-postgres/.devcontainer/Dockerfile

Re-derive imageVariant.proposals from the image manifest's variants, replacing floating 4-* with concrete 4.0-*; set default to 4.0-trixie. Also cleaned up stray whitespace/formatting.

  • src/ruby/devcontainer-template.json
  • src/ruby-rails-postgres/devcontainer-template.json

Replace removed RVM permission setup with a rubygems group that grants vscode write access to $GEM_HOME (RVM no longer ships in the v4 image):

# src/ruby-rails-postgres/.devcontainer/Dockerfile
RUN groupadd --system rubygems \
	&& usermod --append --groups rubygems vscode \
	&& chgrp -R rubygems "$GEM_HOME" \
	&& chmod -R g+rwX "$GEM_HOME" \
	&& find "$GEM_HOME" -type d -exec chmod g+s {} +

Update tests to drop RVM/rbenv/nvs assumptions and validate the new ruby-build/rubies layout and gem writability:

  • test/ruby-rails-postgres/test.sh — removed the two /usr/local/rvm/gems write-permission checks.
  • test/universal/test.sh — swapped rvm/rbenv/nvs checks for ruby-build, added ruby gems are writable, and repointed the version count from /usr/local/rvm/rubies to /usr/local/rubies (expected count 2).

Bump version 6.0.16.0.2 (patch) in both templates.

// proposals now mirror the manifest variants
"proposals": ["4.0-trixie", "3.4-trixie", "3.3-trixie", "4.0-bookworm", "3.4-bookworm", "3.3-bookworm", "3.4-bullseye", "3.3-bullseye"],
"default": "4.0-trixie"

Validation

npx tsx build/check-image-tags.ts <images> reports zero MISSING tags for both templates; updated test scripts pass against the v4 image; edited JSON formatted with Prettier.

Co-authored-by: Kaniska244 <186041440+Kaniska244@users.noreply.github.com>
Copilot AI changed the title [WIP] Sync template image variants with devcontainers/images Sync Ruby template image variants to devcontainers/images ruby v4 Aug 28, 2026
@Kaniska244
Kaniska (Kaniska244) marked this pull request as ready for review August 28, 2026 09:37
@Kaniska244
Kaniska (Kaniska244) requested a review from a team as a code owner August 28, 2026 09:37
@abdurriq
Abdurrahmaan Iqbal (abdurriq) merged commit 0d90e81 into main Aug 28, 2026
17 checks passed
@abdurriq
Abdurrahmaan Iqbal (abdurriq) deleted the copilot/sync-template-image-variants branch August 28, 2026 09:46
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.

Sync template image variants with devcontainers/images

3 participants