google-cloud-shell

Workflow for building, pushing, and testing Docker images inside GKE / Kubernetes

删除回忆录丶 提交于 2019-12-02 08:19:43
I am developing a Kubernetes service for deployment in Google Container Egine (GKE). Until recently, I have built Docker images in Google Cloud Shell, but I am hitting quota limits now, because the overall load on the free VM instance where Cloud Shell runs is apparently too high from multiple docker build s and push es. My experience so far is that after about a week or so of sustained work I face the following error message and have to wait for about two days before the Cloud Shell becomes available again. Service usage limits temporarily exceeded. Try connecting later. I have tried to shift

Google Cloud Shell is using project=cloud-devshell-dev instead of my actual project, can't find enabled APIs

别来无恙 提交于 2019-12-01 21:30:29
问题 I created a GCP project to play around with the video-intelligence API. I enabled the API on my project and launched a Cloud Shell. I then copied the code from github and followed the README instructions. However, when I try to run faces.py I get this error message: StatusCode.PERMISSION_DENIED, Google Cloud Video Intelligence API has not been used in project cloud-devshell-dev before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/videointelligence

Installed packages disappeared in Google Cloud Shell

人走茶凉 提交于 2019-12-01 13:05:22
I've tried to install bunch of python packages in Google Cloud Platform Console. However, the disk space was not enough and installation failed. Interestingly, at some point, the network connection was lost and I should reconnect it. And then I've checked some packages which had been already installed before I tried to install other bunch of python packages. Expecting $ python Python 2.7.9 (default, Mar 1 2015, 12:57:24) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> But numpy was not found. This is the actual result. $ python

how to schedule the shell script using Google Cloud Shell?

只谈情不闲聊 提交于 2019-11-30 17:07:19
I have a .sh file that is stored in GCS. I am trying to schedule the .sh file through google cloud shell. I can run the same file using gsutil cat gs://miptestauto/baby.sh | sh command but not able to schedule it. Following is my code for scheduling the file: 16 17 * * * gsutil cat gs://miptestauto/baby.sh | sh It displays the message as "auto saving..done" but the scheduled job is not get displayed when I use crontab -l # contents of .sh file bin/bash bq load --source_format=CSV babynames.baby_destination13 gs://testauto/yob2010.txt name:string,gender:string,count:integer Please can anyone

How do I install Python 3.7 in google cloud shell

元气小坏坏 提交于 2019-11-28 23:13:21
问题 I have python 3.5 on my google cloud shell and want 3.7 so I can do command line debugging of code I am going to deploy via google cloud functions (and use 3.7 features such as f-strings). I try various forms of the following: sudo apt-get install python37 and always get back Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package python37 Any help would be really appreciated! 回答1: This worked for me on the GCP shell. # Install

Is it possible to use the Google Cloud Shell via a ssh?

本小妞迷上赌 提交于 2019-11-28 18:57:13
问题 Is it possible to connect to the Google Cloud Shell instance via the ssh? Maybe somehow with gcloud? So I can use it with my favorite terminal (iTerm in particular) and not with the Web-based shell. Answer: yes it is now been possible: https://cloud.google.com/blog/products/gcp/introducing-the-ability-to-connect-to-cloud-shell-from-any-terminal 回答1: Yes . From the gcloud CLI, run gcloud alpha cloud-shell ssh . This will establish an interactive SSH session with Cloud Shell. Note, this command