Add google cloud cli (gcloud, gsutil) to Mac stacks

Have default image installed with gcloud / gsutil cli.

upload files to gcloud

Thank you for the feature request!

Which stack @tbarak?

gcloud is preinstalled on the Linux stacks https://github.com/bitrise-io/bitrise.io/blob/389dede98c449d71c2f2d676a49b544c1b6b9302/system_reports/linux-docker-android.log#L273

Hybrid is the one I need

May I ask why you need it on the Mac stacks specifically? :thinking: Is this something you can’t do on the Linux stacks?

Hi! FYI, we are an entity that needs gcloud on the Mac stacks because in the same workflow we’d like to create a test Firebase backend and exercise our iOS client against it.

Hi @dweekly! Thanks so much for letting us know! If you could place a vote on on the original post as well, that would “make things official”. :wink:

Hi @ahvth-bitrise
Is there any update on the gcloud for Mac stacks?

1 Like

Hi,
this is how i install gcloud on mac stacks:

export CLOUDSDK_CONFIG=/Users/vagrant/git/.config/
curl -sSL https://sdk.cloud.google.com > /tmp/gcl && sudo bash /tmp/gcl --install-dir=/Users/vagrant/git/gcloud --disable-prompts

then you can use gcloud like this

/Users/vagrant/git/gcloud/google-cloud-sdk/bin/gcloud auth activate-service-account -q --key-file /tmp/key.json