Add pulumi.com devcontainer feature - #86
Conversation
Co-authored-by: sebst <592313+sebst@users.noreply.github.com>
pulumi.com devcontainer feature
There was a problem hiding this comment.
Pull request overview
Adds a new pulumi.com devcontainer Feature to install the Pulumi CLI in this devcontainer-features repo, along with generated documentation and a basic smoke test.
Changes:
- Introduces
src/pulumi.comfeature definition (devcontainer-feature.json) and installer (install.sh) for Pulumi. - Adds generated feature README for usage/options.
- Adds a devcontainer feature test script that validates
pulumi versionruns.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| test/pulumi.com/test.sh | Adds a smoke test to confirm the Pulumi CLI executes. |
| src/pulumi.com/README.md | Adds the generated feature README (usage/options). |
| src/pulumi.com/install.sh | Adds the Pulumi download/install logic from GitHub releases. |
| src/pulumi.com/devcontainer-feature.json | Defines the feature metadata and version option. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| | Options Id | Description | Type | Default Value | | ||
| |-----|-----|-----|-----| | ||
| | version | Version of "pulumi" to install. | string | latest | |
| fi | ||
| readonly downloadUrl="$(echo -n "$downloadUrlTemplate" | envsubst)" | ||
| curl_check_url "$downloadUrl" | ||
| curl_download_stdout "$downloadUrl" | tar -xz --strip-components=1 -C "$binaryTargetFolder" |
| curl_download_stdout "$downloadUrl" | tar -xz --strip-components=1 -C "$binaryTargetFolder" | ||
| chmod 755 "${binaryTargetFolder}/${binaryName}" |
|
@copilot New features need to be added to .github/workflows/test.yaml |
Co-authored-by: sebst <592313+sebst@users.noreply.github.com>
Done in 06122fa — added |
Co-authored-by: sebst <592313+sebst@users.noreply.github.com>
Fixed in 064db2d — the |
Adds a new community devcontainer feature to install the Pulumi CLI.
What's added
src/pulumi.com/devcontainer-feature.json— feature manifest with aversionoption (default:latest)src/pulumi.com/install.sh— downloads and installs thepulumibinary from GitHub releases (pulumi/pulumi); supportsamd64/arm64; extracts only thepulumibinary from the archive to/usr/local/binsrc/pulumi.com/README.md— auto-generated docstest/pulumi.com/test.sh— smoke test verifyingpulumi versionexits successfully.github/workflows/test.yaml—pulumi.comadded to bothtest-autogeneratedandtest-scenariosCI matricesUsage
Pinning a specific version:
Original prompt
pulumi.com#30📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.