You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- per review comments, GH Codespaces and VS Code extension use their own implementation for `forwardPorts` and so would conflict with Docker publishing
- so `--skip-forward-ports` allows for publishing of `forwardPorts` to be skipped by the CLI
NOTE: passing `skipForwardPorts` around required drilling down through a lot of function arguments -- those could potentially be refactored, but that is out-of-scope for now
Copy file name to clipboardExpand all lines: src/spec-node/devContainersSpecCLI.ts
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,7 @@ function provisionOptions(y: Argv) {
130
130
'buildkit': {choices: ['auto'as'auto','never'as'never'],default: 'auto'as'auto',description: 'Control whether BuildKit should be used'},
131
131
'additional-features': {type: 'string',description: 'Additional features to apply to the dev container (JSON as per "features" section in devcontainer.json)'},
132
132
'skip-feature-auto-mapping': {type: 'boolean',default: false,hidden: true,description: 'Temporary option for testing.'},
133
+
'skip-forward-ports': {type: 'boolean',default: false,description: 'Do not publish forwardPorts.'},
133
134
'skip-post-attach': {type: 'boolean',default: false,description: 'Do not run postAttachCommand.'},
134
135
'dotfiles-repository': {type: 'string',description: 'URL of a dotfiles Git repository (e.g., https://github.com/owner/repository.git)'},
135
136
'dotfiles-install-command': {type: 'string',description: 'The command to run after cloning the dotfiles repository. Defaults to run the first file of `install.sh`, `install`, `bootstrap.sh`, `bootstrap`, `setup.sh` and `setup` found in the dotfiles repository`s root folder.'},
0 commit comments