gcloud

How to list the published container images in the Google Container Registry using gcloud or another CLI

落花浮王杯 提交于 2019-12-10 02:06:35
问题 Is there a gcloud API or other command line interface (CLI) to access the list of published container images in the private Google Container Registry? (That is the container registry inside a Google Cloud Platform project) gcloud container does not seem to help: $ gcloud container Usage: gcloud container [optional flags] <group | command> group may be clusters | operations command may be get-server-config Deploy and manage clusters of machines for running containers. flags: --zone ZONE, -z

How to authenticate to Google Cloud API without Application Default Credentials or Cloud SDK?

时光怂恿深爱的人放手 提交于 2019-12-09 14:51:42
问题 I'm trying to access the Google Cloud API from an AWS Lambda function but I don't know how to authenticate. The auth guide in the Google Cloud documentation (https://cloud.google.com/docs/authentication) wants me to download a credentials JSON file and use Application Default Credentials, but as anyone who has used hosted functions already knows, the point is that you don't need to manage a server or runtime environment, so Lambda doesn't give me the ability to store arbitrary files in the

gcloud app deploy, flag to automate prompting?

ぃ、小莉子 提交于 2019-12-09 07:23:29
问题 Is it possible to do silent deployment when using gcloud app deploy When I run the command gcloud app deploy ./deployment/app.yaml --version v1 its always prompting for Do you want to continue (Y/n)? Y how to automate this? is there any flag that we can pass in to mute this? 回答1: You're looking for the --quiet flag, available across all gcloud commands: $ gcloud --help --quiet, -q Disable all interactive prompts when running gcloud commands. If input is required, defaults will be used, or an

Subscriber.stopAsync() results in RejectedExecutionException

时光毁灭记忆、已成空白 提交于 2019-12-08 17:40:36
My code is basically following the official tutorials and the main purpose is to collect all messages from one subscription (Constants.UNFINISHEDSUBID) and republish them on another. But currently I'm facing a problem, that i can't solve. In my implementation calling subscriber.stopAsync() results in the following exception: Mai 04, 2017 4:59:25 PM com.google.common.util.concurrent.AbstractFuture executeListener SCHWERWIEGEND: RuntimeException while executing runnable com.google.common.util.concurrent.Futures$6@6e13e898 with executor java.util.concurrent.Executors

Generating getServingUrl() in google cloud storage with NodeJs sdk

你离开我真会死。 提交于 2019-12-08 17:03:42
问题 I am using google cloud storage for storing images and also I have server running on NodeJs. I want to generate for every image the servingUrl (aka magicUrl) which would on the fly generate images of different sizes(see more https://medium.com/google-cloud/uploading-resizing-and-serving-images-with-google-cloud-platform-ca9631a2c556#.1jtzu5kuo) I tried using gcloud sdk to generate that, but I couldn't find anywhere getServingUrl . 回答1: You seem to be confusing Google App Engine and Google

Link private repository in packages.json in app deployed to gcloud

夙愿已清 提交于 2019-12-08 13:31:28
问题 I have a node.js app ( my-app ) that I'm setting Continuous Deployment for. The repository is hosted on Bitbucket and I'm creating CD with Bitbucket's Pipelines. The pipelines script deploys the app to Google Cloud Platform, to App Engine. I am encountering a problem when I try to add a package ( my-package ) to my-app that is in another private repository on Bitbucket. Here is an part of my packages.json file: "dependencies": { "my-package": "git+ssh://git@bitbucket.org:team-name/my-package

Jenkins push-to-deploy setup for app-engine fails

懵懂的女人 提交于 2019-12-08 12:49:32
I created a new compute engine instance from the bitnami-jenkins image to auto-deploy my app-engine application. I used the following command to do so: gcloud compute instances create deployer --project myapp --image-project bitnami-launchpad --image bitnami-jenkins-1-638-1-linux-debian-7-x86-64 --zone us-central1-a --machine-type g1-small --metadata "bitnami-base-password=mypassword,bitnami-default-user=user,bitnami-key=jenkins,bitnami-name=Jenkins,bitnami-url=//bitnami.com/stack/jenkins,bitnami-description=Jenkins,startup-script-url=https://dl.google.com/dl/jenkins/p2dsetup/setup-script.sh"

Jenkins push-to-deploy setup for app-engine fails

爷,独闯天下 提交于 2019-12-08 08:30:43
问题 I created a new compute engine instance from the bitnami-jenkins image to auto-deploy my app-engine application. I used the following command to do so: gcloud compute instances create deployer --project myapp --image-project bitnami-launchpad --image bitnami-jenkins-1-638-1-linux-debian-7-x86-64 --zone us-central1-a --machine-type g1-small --metadata "bitnami-base-password=mypassword,bitnami-default-user=user,bitnami-key=jenkins,bitnami-name=Jenkins,bitnami-url=//bitnami.com/stack/jenkins

Import Error: no module named cloud.ml

余生长醉 提交于 2019-12-08 07:12:24
问题 I am trying to follow the instructions to use local predictions in tensorflow as described here. Running the command gcloud ml-engine local predict --model-dir=~/PycharmProjects/nlc/export/1/ --json-instances=test.json gives me the error: ERROR: (gcloud.ml-engine.local.predict) Cannot import google.cloud.ml. Please verify "python -c 'import google.cloud.ml'" works. Please verify the installed cloudml sdk version with: "python -c 'import google.cloud.ml as cloudml; print cloudml.__version__'".

Why does exporting GOOGLE_APPLICATION_CREDENTIALS not work with `bq`?

只愿长相守 提交于 2019-12-08 05:52:27
问题 The google docs say to export the env var GOOGLE_APPLICATION_CREDENTIALS with the path to a service account's JSON key, and gcloud will use it. I can't get it to work. My command is: GOOGLE_APPLICATION_CREDENTIALS=/home/ubuntu/.config/google-creds.json bq ls This just brings up an error: You do not currently have an active account selected. Please run: $ gcloud auth login to obtain new credentials, or if you have already logged in with a different account: $ gcloud config set account ACCOUNT