Add GitHub Codespaces devcontainer configuration for Starter Lab#153
Open
hoisjp wants to merge 1 commit into
Open
Add GitHub Codespaces devcontainer configuration for Starter Lab#153hoisjp wants to merge 1 commit into
hoisjp wants to merge 1 commit into
Conversation
This PR adds a `.devcontainer` configuration to enable GitHub Codespaces support for the Starter Lab (`labs/starter-lab/`). ## What's included - `.devcontainer/devcontainer.json`: Dev container configuration with the following Dev Container Features: - Azure CLI (with Bicep) - Azure Developer CLI (azd) - GitHub CLI (for Scenario 3: issue triage) - `.devcontainer/post-create.sh`: Installs `python3-yaml` and `jq` via apt (pre-compiled binaries, no pip build time) - `.devcontainer/post-start.sh`: Displays a brief welcome message with Azure login instructions on each terminal open ## VS Code extensions installed - `ms-azuretools.vscode-bicep` - `ms-azuretools.azure-dev` - `ms-azuretools.vscode-azure-github-copilot` - `ms-vscode.azurecli` - `ms-python.python` - `redhat.vscode-yaml` - `github.copilot-chat` ## Design decisions - Uses `mcr.microsoft.com/devcontainers/base:ubuntu` as the base image; system Python 3 is sufficient (no Python Feature needed) - Docker-in-Docker is not required since the Starter Lab uses ACR Tasks - Host requirements set to 2-core / 4 GB to minimize Codespaces billing - Azure credential mount configured for local Dev Container reuse
Author
|
@microsoft-github-policy-service agree company="Microsoft" |
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 a
.devcontainerconfiguration to enable GitHub Codespaces support for the Starter Lab (labs/starter-lab/), providing a zero-setup development environment for lab participants.Files added
.devcontainer/devcontainer.json— Dev container configuration.devcontainer/post-create.sh— One-time setup script (runs on container creation).devcontainer/post-start.sh— Welcome message with login instructions (runs on each terminal open)Dev Container Features
azd up/azd down --purgefor deploy and teardownVS Code extensions
ms-azuretools.vscode-bicepms-azuretools.azure-devms-azuretools.vscode-azure-github-copilotms-vscode.azureclims-python.pythonredhat.vscode-yamlgithub.copilot-chatDesign decisions
mcr.microsoft.com/devcontainers/base:ubuntu— Dev Container-compatible base; system Python 3 from Ubuntu 24.04 is sufficient (no Python Feature needed, avoiding long build times)python3-yamlvia apt: Pre-compiled binary instead ofpip install pyyamlto avoid C extension build time~/.azurebind mount configured for local Dev Container reuse (ignored in Codespaces)Quick start (after opening in Codespaces)
az login --use-device-code cd labs/starter-lab bash scripts/setup.sh