Installs the Google Cloud CLI (gcloud) via Google's apt repository. Forked from ghcr.io/dhoeric/features/google-cloud-cli with a trixie-compatible key import (gpg --dearmor instead of the removed apt-key).
"features": {
"ghcr.io/joshuanianji/devcontainer-features/google-cloud-cli:1": {}
}| Options Id | Description | Type | Default Value |
|---|---|---|---|
| version | Select or enter a gcloud CLI version | string | latest |
| installGkeGcloudAuthPlugin | Install 'gke-gcloud-auth-plugin' plugin? | boolean | false |
This is a fork of ghcr.io/dhoeric/features/google-cloud-cli. It ships two fixes that have been pending upstream for over half a year:
- Trixie-compatible key import. The upstream feature imports Google's apt key with
apt-key, which was removed in Debian 13 (trixie) and Ubuntu 24.04, so it fails withapt-key: command not found(exit 127) on those distributions. We usegpg --dearmorinstead (the fix from dhoeric/features#36). - Working
installGkeGcloudAuthPluginoption. The devcontainer feature runtime exposes options as environment variables by uppercasing the option name (installGkeGcloudAuthPlugin->INSTALLGKEGCLOUDAUTHPLUGIN, no underscores). The upstream feature readsINSTALL_GKEGCLOUDAUTH_PLUGIN(with an underscore), which is never set, so the option silently does nothing. We read the correctly-named variable.
Otherwise the feature is identical to the upstream one (same options, same apt source).
See joshuanianji/devcontainer-features#90.
Architectures: amd and arm
OS: ubuntu, debian (including Debian 13/trixie and Ubuntu 24.04+)
Shells: bash, zsh, fish
| Version | Notes |
|---|---|
| 1.0.0 | Initial fork of ghcr.io/dhoeric/features/google-cloud-cli@1.0.1 with gpg --dearmor key import (fixes dhoeric/features#36, joshuanianji/devcontainer-features#90). |
- Upstream: dhoeric/features/src/google-cloud-cli
- Pending upstream fix: dhoeric/features#36
Note: This file was auto-generated from the devcontainer-feature.json. Add additional notes to a NOTES.md.