Skip to content

refactor: update VSCode devcontainers to new architecture#123

Draft
cmagina wants to merge 1 commit intoredhat-et:mainfrom
cmagina:pr-09-devcontainer-updates
Draft

refactor: update VSCode devcontainers to new architecture#123
cmagina wants to merge 1 commit intoredhat-et:mainfrom
cmagina:pr-09-devcontainer-updates

Conversation

@cmagina
Copy link
Copy Markdown
Collaborator

@cmagina cmagina commented Feb 7, 2026

Summary

This PR is part 9 of 11 in the rework modernization effort. It updates VSCode devcontainer configurations to align with the new modular architecture.

Changes:

  • ✅ Add new variant structure: cpu, cuda, rocm
  • ✅ Add .devcontainer/base/create_user.template.sh
  • ✅ Update .devcontainer/base/devcontainer.template.json
  • ✅ Rename postStartCommand.sh to postStartCommand.template.sh
  • ✅ Remove .devcontainer/base/user.sh
  • ✅ Update bootstrap and generate scripts
  • ✅ Remove old variants: triton, triton-amd, triton-cpu

New variant structure:

  • .devcontainer/cpu: CPU-only development
  • .devcontainer/cuda: NVIDIA CUDA development
  • .devcontainer/rocm: AMD ROCm development

Why this change?

The old devcontainer naming (triton, triton-amd, triton-cpu) was:

  • Confusing (these containers support more than just Triton)
  • Inconsistent with hardware capabilities they provide
  • Difficult to understand for new users

The new naming:

  • Clearly reflects hardware support (cpu, cuda, rocm)
  • Aligns with the new Dockerfile structure
  • Makes it easier to understand what each variant provides
  • Improves consistency across the repository

Testing:

Dependencies:

🤖 Generated with Claude Code

Restructure VSCode devcontainer configurations to align with the
new modular architecture and clearer naming conventions:

New variant structure:
- .devcontainer/cpu: CPU-only devcontainer
- .devcontainer/cuda: NVIDIA CUDA devcontainer
- .devcontainer/rocm: AMD ROCm devcontainer

Base template changes:
- Add create_user.template.sh (replaces user.sh)
- Update devcontainer.template.json for new architecture
- Rename postStartCommand.sh to postStartCommand.template.sh
- Remove old user.sh

Script updates:
- Update bootstrap-devcontainer.sh for new structure
- Update generate-devcontainers.sh for new variants

Removed old variants:
- .devcontainer/triton (replaced by cuda)
- .devcontainer/triton-amd (replaced by rocm)
- .devcontainer/triton-cpu (replaced by cpu)

Benefits:
- Clearer naming that reflects hardware support
- Aligns with new Dockerfile structure from PR redhat-et#121
- Leverages modular setup scripts from PRs redhat-et#115-120
- Improves maintainability and consistency

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.

1 participant