Conversation
Create cli/scaffold_devcontainer.py with argparse-based CLI that generates devcontainer.json and devcontainer.env.json non-interactively. Register 'devcontainer' as a scaffold target in devopsos.py. Add 8 tests. Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Analyze and implement CLI commands for dev container config
Add CLI scaffold command for dev container configuration
Mar 4, 2026
Add scaffold_devcontainer CLI usage to README.md quick start, the Dev Container section, .devcontainer/README.md, docs/DEVOPS-OS-README.md, and docs/DEVOPS-OS-QUICKSTART.md. Also update the scaffold command help text to list devcontainer as a target. Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
Copilot
AI
changed the title
Add CLI scaffold command for dev container configuration
Add CLI scaffold command for dev container config and update docs
Mar 4, 2026
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.
Dev container setup was manual-only (edit JSON by hand, run
configure.py). Adds a non-interactive CLI command following the existing scaffold pattern, and updates all documentation to reference it.New CLI command:
scaffold_devcontainercli/scaffold_devcontainer.py— argparse-based generator withDEVOPS_OS_DEVCONTAINER_env var fallbacks, consistent with other scaffold commands.devcontainer/devcontainer.json(build args, extensions, ports) and.devcontainer/devcontainer.env.json(tool selection + versions)devcontainertarget incli/devopsos.pyscaffold routingpython -m cli.scaffold_devcontainer \ --languages python,go \ --cicd-tools docker,terraform,kubectl \ --kubernetes-tools k9s,flux \ --devops-tools prometheus,grafana # Or via unified CLI python -m cli.devopsos scaffold devcontainerDocumentation updates
README.md— Added to quick start steps 3 and 4; rewrote Dev Container section to lead with CLI.devcontainer/README.md— Split config into Option A (CLI) / Option B (manual JSON)docs/DEVOPS-OS-README.md— CLI-first "create from scratch" flow; manual approach in collapsible<details>docs/DEVOPS-OS-QUICKSTART.md— Added CLI section to Container ConfigurationTests
cli/test_cli.pycovering defaults, language/tool selection, build args, versions, extensions, forwarded ports, and CLI integration🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.