Skip to content

google-cloud

Version 2026.144.1443
Repo box/github.com/opencharly/layer-google-cloud:v2026.241.0656

Google Cloud SDK ships the gcloud, gsutil and bq CLIs on PATH The candy downloads the official Google Cloud CLI x86_64 tarball, unpacks it under /var/opt/google-cloud-sdk, runs the bundled install.sh, and symlinks gcloud, gsutil and bq into /usr/bin so every shell finds them. Each CLI answers its own version subcommand, which is what these scenarios assert.

This candy’s plan: — the runnable spec charly check executes against a live deployment. check: steps are idempotent probes; run: steps change state.

Intent Step
run download the Google Cloud CLI tarball (the declarative download verb — content-addressed /tmp/downloads cache, atomic .part to mv rename, stage-user-correct cache mount)
run run the bundled install.sh and symlink the CLIs onto PATH
check the gcloud CLI is symlinked onto PATH
check gcloud reports its version and exits cleanly
check the gsutil storage CLI is on PATH
check the bq BigQuery CLI is on PATH
check bq reports its version and exits cleanly
check the SDK tree is unpacked at its /var/opt install prefix
check command=/usr/bin/gsutil version