GitHub Copilot CLI Dev Container Feature
This repository packages a Dev Container Feature that installs and configures the GitHub Copilot CLI inside VS Code Dev Containers and GitHub Codespaces.
Contents
src/copilot-cli: Feature implementation (feature.json, install script, documentation).test/: Automated tests using the Dev Container Features test harness.examples/: Sampledevcontainer.jsonconfigurations.
Getting started
- Build the feature locally:
devcontainer features build src/copilot-cli - Run tests:
devcontainer features test src/copilot-cli - Publish to a registry once you're satisfied (for example GitHub Container Registry):
devcontainer features publish src/copilot-cli --namespace your-org/features
Distribution
- GitHub Actions workflow –
.github/workflows/publish.ymlpublishes the feature collection toghcr.iowhenever you push a semantic tag (for examplev0.1.0) or trigger the workflow manually. - Local helper script –
distribution/local-ubuntu-docker.shreplicates the automated publish process on an Ubuntu host with Docker installed. It runs the Dev Containers CLI from a container so no additional tooling is required on the host.