Skip to content

Add CLI scaffold command for dev container config and update docs#8

Merged
chefgs merged 4 commits intomainfrom
copilot/implement-cli-commands-dev-container
Mar 4, 2026
Merged

Add CLI scaffold command for dev container config and update docs#8
chefgs merged 4 commits intomainfrom
copilot/implement-cli-commands-dev-container

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 4, 2026

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_devcontainer

  • cli/scaffold_devcontainer.py — argparse-based generator with DEVOPS_OS_DEVCONTAINER_ env var fallbacks, consistent with other scaffold commands
  • Generates both .devcontainer/devcontainer.json (build args, extensions, ports) and .devcontainer/devcontainer.env.json (tool selection + versions)
  • Supports all 6 tool categories: languages, CI/CD, Kubernetes, build tools, code analysis, DevOps tools
  • Registered as devcontainer target in cli/devopsos.py scaffold routing
python -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 devcontainer

Documentation 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 Configuration

Tests

  • 8 new tests in cli/test_cli.py covering 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.

Copilot AI and others added 2 commits March 4, 2026 20:45
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
@chefgs chefgs marked this pull request as ready for review March 4, 2026 21:12
@chefgs chefgs merged commit b1b80a2 into main Mar 4, 2026
4 checks passed
@chefgs chefgs deleted the copilot/implement-cli-commands-dev-container branch March 4, 2026 21:12
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.

2 participants