#33 - Add the Google Cloud CLI and Terraform to every variant #34
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
actions/sindri!34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "33-add-gcloud-terraform"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Every variant now ships the Google Cloud CLI (
gcloud,gsutil,bq) and Terraform, installed from Google's and HashiCorp's official APT repos.Why
See #33. Neither tool was in any variant. The desktop variant is built
FROM coder, which is builtFROM base, andciis builtFROM base, so the sharedbasestage is the one place that reaches bothciand the desktop. The headlesscodervariant gets them as well.Changes
Dockerfile(basestage): one newRUNstep after the Kubernetes QA tools:/etc/apt/keyringsand asserts their fingerprints before trusting them: Google35BAA0B3…DC6315A3, HashiCorpD55C0D1A…CA026560(the key HashiCorp rotated to in 2026-09);google-cloud-sdk.listandhashicorp.list; the HashiCorp suite comes from/etc/os-releaseinstead of a hard-codednoble;google-cloud-cliandterraform, then runsgcloud --versionandterraform versionso a broken install fails the build.README.md:cifeature list and use case, and a Version Information entry, including how to add gcloud components withapt-get, sincegcloud components installis disabled for APT installs.Things to weigh in review
dfaround the real step. Most of it is the Python runtime bundled withgoogle-cloud-cli.terraform=<version>-1.Verification
InReleasechecked withgpgvagainst the pinned keysGood signaturefrom bothRUNstep, extracted from the Dockerfile, run as root in a throwaway pod fromci-latestW:/E:lines;google-cloud-cli 590.0.0,terraform 1.17.0command -v gcloud terraformbefore the stepgcloud config listandterraform -helprungcloud components install kubectlgoogle-cloud-cli-gke-gcloud-auth-plugin590.0.0-0)The test pod is deleted. Not verified: the full kaniko builds, which the branch push has started in
docker-dev; arm64.Closes #33
🤖 Generated with Claude Code
https://claude.ai/code/session_01DXCqoaBNpoW7PszVNNbjZh