gcloud

Passing a parameter to gcloud app via Jenkins

◇◆丶佛笑我妖孽 提交于 2020-03-23 11:33:54
问题 I am using Jenkins to trigger some stuff on gcloud and I need to be able to pass a parameter from the Build with parameters menu to the gcloud command that is being triggered. So let's say my gcloud command is: gcloud firebase test android run .... --device model=shamu I'd like the passed device model to be a variable. So I tried something like DEVICE_MODEL as parametrized string and stuff like this: gcloud firebase test android run .... --device model=${DEVICE_MODEL} gcloud firebase test

How to set an environment variable when using gcloud ML engine?

亡梦爱人 提交于 2020-03-04 21:21:19
问题 All, (Environments: Windows 7, Python 3.6, Keras & tensorflow libs, gcloud ml engine) I am running certain Keras ML model examples using gcloud ml engine as introduced here. Everything was fine but I just got various results among multiple runs although I was using the same training and validation data. My goal is to make reproductive training results from multiple runs. I googled it for a while and found some solutions in this Keras Q&A regarding making reproductive results. Basically they

How to set an environment variable when using gcloud ML engine?

百般思念 提交于 2020-03-04 21:17:00
问题 All, (Environments: Windows 7, Python 3.6, Keras & tensorflow libs, gcloud ml engine) I am running certain Keras ML model examples using gcloud ml engine as introduced here. Everything was fine but I just got various results among multiple runs although I was using the same training and validation data. My goal is to make reproductive training results from multiple runs. I googled it for a while and found some solutions in this Keras Q&A regarding making reproductive results. Basically they

How to specify secretEnv to cloudbuild.yaml via gcloud cli args or environment variables

ⅰ亾dé卋堺 提交于 2020-03-03 06:58:46
问题 If I follow the cloud build document, I have to specify encrypted secret on cloudbuild.yaml. secrets: - kmsKeyName: projects/[PROJECT-ID]/locations/global/keyRings/[KEYRING-NAME]/cryptoKeys/[KEY-NAME] secretEnv: MY_SECRET: <base64-encoded encrypted secret> Even if it is encrypted, I don't commit secret value at code. Please tell me another way. ex. via args from gcloud builds submit command or environment variables,...etc 回答1: You can use Google Secret Manager instead. We're still updating

How to deploy multiple functions using gcloud command line?

最后都变了- 提交于 2020-02-25 06:57:25
问题 I want to deploy multiple cloud functions. Here is my index.js : const { batchMultipleMessage } = require('./gcf-1'); const { batchMultipleMessage2 } = require('./gcf-2'); module.exports = { batchMultipleMessage, batchMultipleMessage2 }; How can I use gcloud beta functions deploy xxx to deploy these two functions at one time. 回答1: Option 1: For now, I write a deploy.sh to deploy these two cloud functions at one time. TOPIC=batch-multiple-messages FUNCTION_NAME_1=batchMultipleMessage FUNCTION

my Laravel application has a problem on Google Cloud. The stream or file “/srv/storage/logs/laravel.log” could not be opened

我的未来我决定 提交于 2020-02-25 02:24:11
问题 The laravel application working well in my local. But when I upload it to Google App Engine, using command gcloud app deploy . Then it give me error writing logs. UnexpectedValueException The stream or file "/srv/storage/logs/laravel.log" could not be opened: failed to open stream: Read-only file system The code is app.yaml file in root folder of my laravel app. Copyright 2015 Google Inc. All Rights Reserved. runtime: php72 api_version: 1 threadsafe: true runtime_config: document_root: public

Find logs between timestamps using stackdriver CLI

被刻印的时光 ゝ 提交于 2020-02-24 05:13:21
问题 I need to find logs between two timestamps using stackdriver CLI. I used the below command. gcloud beta logging read "timestamp>=\"2017-02-19T00:00:00Z\" AND timestamp<\"2017-03-14T00:00:00Z\"" But its giving me the error: The filename, directory name, or volume label syntax is incorrect. Here is my gcloud version details 回答1: I'm a product manager with Stackdriver logging. We've tested the command and it seemed to work fine. The issue may be with Windows command shell? One guess is that

Find logs between timestamps using stackdriver CLI

笑着哭i 提交于 2020-02-24 05:11:39
问题 I need to find logs between two timestamps using stackdriver CLI. I used the below command. gcloud beta logging read "timestamp>=\"2017-02-19T00:00:00Z\" AND timestamp<\"2017-03-14T00:00:00Z\"" But its giving me the error: The filename, directory name, or volume label syntax is incorrect. Here is my gcloud version details 回答1: I'm a product manager with Stackdriver logging. We've tested the command and it seemed to work fine. The issue may be with Windows command shell? One guess is that

No access token in .kube/config

允我心安 提交于 2020-02-24 04:13:57
问题 After upgrading my cluster in GKE the dashboard will no longer accept certificate authentication. No problem there's a token available in the .kube/config says my colleague user: auth-provider: config: access-token: REDACTED cmd-args: config config-helper --format=json cmd-path: /home/user/workspace/google-cloud-sdk/bin/gcloud expiry: 2018-01-09T08:59:18Z expiry-key: '{.credential.token_expiry}' token-key: '{.credential.access_token}' name: gcp Except in my case there isn't... user: auth

How to authenticate google APIs with different service account credentials?

浪子不回头ぞ 提交于 2020-02-20 10:31:06
问题 As anyone who has ever had the misfortune of having to interact with the panoply of Google CLI binaries programmatically will have realised, authenticating with the likes of gcloud , gsutil , bq , etc. is far from intuitive or trivial, especially when you need to work across different projects. I am running various cron jobs that interact with Google Cloud Storage and BigQuery for different projects. Since the cron jobs may overlap, renaming config files is clearly not an option, and nor