Add VS Code tunnel support for remote container access#83
Open
Add VS Code tunnel support for remote container access#83
Conversation
VS Code tunnels allow connecting directly to containers without SSH, avoiding the "double-hop" of SSH to host + container attach. The container initiates an outbound connection to Microsoft's tunnel service, and VS Code connects through that. Changes: - Add VS Code CLI to devcontainer Dockerfile (supports x64 and arm64) - Add `devs tunnel <name>` CLI command with --status and --kill options - Add tunnel management methods to ContainerManager - Add helper scripts for starting and checking tunnel status - Update CLAUDE.md documentation with tunnel usage instructions First-time usage requires authentication via device code flow with GitHub/Microsoft. After that, tunnels can be started non-interactively.
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.
Summary
This PR adds VS Code tunnel support to devs, allowing direct VS Code connections to containers without SSH. This addresses the request in #82 for avoiding the "double-hop" of SSH to host + container attach.
How it works:
Changes:
devs tunnel <name>CLI command with--statusand--killoptionsstart-tunnel.sh,tunnel-status.sh) for container-side operationsUsage
After the tunnel is running:
dev-<org>-<repo>-<devname>Test plan
pytest packages/cli/tests/- 148 passed, 6 skipped)devs tunnel --helpshows correct usageRelated to #82