gcloud

not able to perform gcloud init inside dockerfile

吃可爱长大的小学妹 提交于 2020-01-12 07:31:48
问题 I have made a Dockerfile for deploying my node.js application into google container engine .It looks like as below FROM node:0.12 COPY google-cloud-sdk /google-cloud-sdk RUN /google-cloud-sdk/bin/gcloud init COPY bpe /bpe CMD cd /bpe;npm start I should use gcloud init inside Dockerfile because my node.js application is using gcloud-node module for creating buckets in GCS . When i am using the above dockerfile and doing docker built it is failing with following errors sudo docker build -t gcr

“\Google\Cloud was unexpected.” when executing gcloud command

廉价感情. 提交于 2020-01-11 12:29:12
问题 The instalation of Google Cloud SDK went right. The problem is when I try to execute a gcloud command (even if gcloud -h) I have this output: \Google\Cloud was unexpected. I'm on Windows 10. Python 2.7.17 is correctly setup. 回答1: There is already a bug for issues when updating to Cloud SDK version 274.0.0 in Windows. Please check it. As a workaround installing Python in C:\Python27 and then Cloud SDK in C:\Cloud_SDK could help. I suggest to migrate to Python 3 as Python 2 will not be

gcloud components update permission denied

随声附和 提交于 2020-01-11 08:14:05
问题 All of a sudden I started getting "Permission Denied" issues when trying to run any gcloud commands such as gcloud components update -- the issue was avoided if I ran sudo gcloud components update but it's not clear to my why the sudo command is suddenly required? I have actually been trying to run a GCMLE experiment and it had the same error/warning, so I tried updating components and still ran into this issue. I have been travelling for a couple days and did not make any changes since these

RuntimeError: autoconf error, while installing google-endpoints

百般思念 提交于 2020-01-07 02:56:36
问题 I am following this Cloud Endpoints quickstart guide, but I am having trouble installing google-endpoints using this command: $ pip install -t lib google-endpoints --extra-index-url=https://gapi-pypi.appspot.com/admin/nurpc-dev --ignore-installed The returned traceback is this: pip install -t lib google-endpoints --extra-index-url=https://gapi-pypi.appspot.com/admin/nurpc-dev --ignore-installed Collecting google-endpoints Using cached google-endpoints-2.0.0b3.tar.gz Collecting google

Dynamic port forwarding fails after turning off and on Google Cloud virtual machine (compute engine)

会有一股神秘感。 提交于 2020-01-05 07:35:31
问题 I'm connecting to my Spark cluster master node with dynamic port forwarding so that I can open jupyter notebook web interface in my local machine. I followed the instructions from this Google Cloud Dataproc tutorial: https://cloud.google.com/dataproc/docs/tutorials/jupyter-notebook I created ssh funnel with the following command as advised: gcloud compute ssh --zone=<cluster-zone> --ssh-flag="-D" --ssh-flag="10000" --ssh-flag="-N" "<cluster-name>-m" And opened web interface: <browser

Error while installing Google Cloud SDK in Cygwin : Unable to fetch https://dl.google.com/dl/cloudsdk/release/components-2.json

和自甴很熟 提交于 2020-01-05 04:42:09
问题 While installing the Google cloud SDK in Cygwin, I'm getting the error. If you are developing an App Engine application, please select the language your application is written in. This will install the required tools and runtimes for working in that language. If necessary, you can add and remove languages later through the gcloud component manager. [1] Java [2] Python and PHP [3] Go [4] No App Engine (you can install App Engine tools later) Please enter your numeric choice (4): 1 (gcloud

Can not make tesseract work in google app engine with python3

社会主义新天地 提交于 2020-01-05 03:51:26
问题 I am trying to deploy an app on the Google App Engine that also has OCR function. I downloaded the tesseract using homebrew und using pytesseract to wrap in Python. The OCR function works on my local system, but it does not when I upload the app to the Google App Engine. I copied tesseract folder from usr/local/cellar/tesseract and pasted into the working directory of my app. I uploaded the tesseract files and also pytesseract files to appengine. I have specified the path for tesseract with

Cannot deploy App Engine Python 3 after cleanup Cloud Storage containers/images

百般思念 提交于 2020-01-04 15:15:26
问题 I was able to deploy app engine (python 3 standard environment) before with gcloud command. But a few days ago I accidentally removed all images under Cloud Storage ( gs://us.artifacts.[My-App-ID].appspot.com/containers/images ) and I can no longer deploy new apps to this app-id. Is there any way I can get back all the files under containers/images? Thanks! Here is the log obtained from Cloud Build details: starting build "a71fe78e-463c-43a5-a463-b7c30ce2331f" FETCHSOURCE BUILD Starting Step

Kubernetes pod autoscaling out of sync with Instance Group autoscaling

泪湿孤枕 提交于 2020-01-04 09:27:22
问题 I have a simple wordpress site defined by the ReplicationController and Service below. Once the app is deployed and running happily, I enabled autoscaling on the instance group created by Kubernetes by going to the GCE console and enabling autoscaling with the same settings (max 5, cpu 10). Autoscaling the instances and the pods seem to work decent enough except that they keep going out of sync with each other. The RC autoscaling removes the pods from the CE instances but nothing happens with

Kubernetes pod autoscaling out of sync with Instance Group autoscaling

本小妞迷上赌 提交于 2020-01-04 09:27:21
问题 I have a simple wordpress site defined by the ReplicationController and Service below. Once the app is deployed and running happily, I enabled autoscaling on the instance group created by Kubernetes by going to the GCE console and enabling autoscaling with the same settings (max 5, cpu 10). Autoscaling the instances and the pods seem to work decent enough except that they keep going out of sync with each other. The RC autoscaling removes the pods from the CE instances but nothing happens with