google-cloud-shell

Basic Docker container reports runlevel unknown

荒凉一梦 提交于 2019-12-20 01:04:02
问题 When I run a basic Docker container (from within Google Cloud Shell) like so docker pull debian docker run -i -t debian:wheezy /bin/bash and then type runlevel at the running container's shell prompt, the run level is unknown . Am I supposed to install ( apt-get ) particular packages in order to add support for run levels. If so, which ones, or what else could be wrong? 回答1: Docker is an application isolation tool, not an OS virtualization tool. Runlevels are at the OS level, the OS comes up,

Installed packages disappeared in Google Cloud Shell

可紊 提交于 2019-12-19 10:57:11
问题 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"

how to schedule the shell script using Google Cloud Shell?

让人想犯罪 __ 提交于 2019-12-18 13:51:18
问题 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

How to specify the root folder to deploy an app using the Cloud SDK?

夙愿已清 提交于 2019-12-13 03:22:29
问题 I'm using "Google App Engine" from GCP to host a static website. I already created the website files (HTML, JS) and yaml using Visual Studio Code. I have the folder with those files stored locally in my local computer. I downloaded the Cloud SDK Shell for Windows. I logged in to my account, and selected the project. According to videos and tutorials, I need to deploy the app using "gcloud app deploy". However I got an error saying that an "app.yaml" file is required to deploy this directory..

How to reset Google Cloud Shell user persistent disk?

送分小仙女□ 提交于 2019-12-12 19:06:16
问题 Ok, folks. Pushing the limits (of my understanding), I've broken my Google Cloud Shell on Google Cloud Platform. I can no longer open a shell session. When I click the shell icon >_ on the tool bar, the shell opens on the lower half of the screen for a moment, stating it is provisioning the instance (if it has been over an hour), established a connection, and then poof, it closes. I was able to time a screen capture just right to see the following: Welcome to Cloud Shell! For help, visit

Is it possible to get a completely new instance of Google Cloud Shell?

五迷三道 提交于 2019-12-12 09:18:15
问题 I accidentally deleted some configuration files, and now the terminal no longer displays my_name@project_name:~$ , but my_name@some_instance:~$ . Is there a way to get a completely new instance for Cloud Shell? 回答1: You can get your Cloud Shell home directory into clean state as follows: Run ls -a $HOME and make sure you don't have any files you care about. Run sudo rm -rf $HOME to delete the home directory. In Cloud Shell menu, click the gear icon, then click "Restart Cloud Shell". Click

How to fix AttributeError: 'module' object has no attribute 'Client' when running python in Google Cloud Interactive Shell

你说的曾经没有我的故事 提交于 2019-12-10 19:40:03
问题 I'm trying to run a python script that simulates traffic sensors sending in data in real time to PubSub on my Google Cloud Shell. I'm getting this error Traceback (most recent call last): File "./send_sensor_data.py", line 87, in <module> psclient = pubsub.Client() AttributeError: 'module' object has no attribute 'Client' Tried running google.cloud.pubsub.__file__ , no duplicates exist. I've been searching everywhere and the popular consensus was to install the pubsub package into a virtual

Cloud terminal appears empty in Firefox

﹥>﹥吖頭↗ 提交于 2019-12-03 01:02:38
问题 I've tested this on Microsoft Edge and Chrome and its working. Update: It's working now on Firefox 回答1: I have the same issue currently. This is a compatibility issue with Firefox version 64.0. Previous version 63.0.3 works with Google Cloud Shell but version 64.0 released on 2018-12-11 shows Cloud Shell empty. You can use other browser or fix it temporarily by reverting back to older Firefox version from https://support.mozilla.org/en-US/kb/install-older-version-of-firefox. 回答2: There was a

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

纵饮孤独 提交于 2019-12-02 17:02:19
问题 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

Cloud terminal appears empty in Firefox

て烟熏妆下的殇ゞ 提交于 2019-12-02 14:24:43
I've tested this on Microsoft Edge and Chrome and its working. Update: It's working now on Firefox I have the same issue currently. This is a compatibility issue with Firefox version 64.0. Previous version 63.0.3 works with Google Cloud Shell but version 64.0 released on 2018-12-11 shows Cloud Shell empty. You can use other browser or fix it temporarily by reverting back to older Firefox version from https://support.mozilla.org/en-US/kb/install-older-version-of-firefox . There was a problem with Google Cloud Shell terminal emulator, but it has since been fixed. 来源: https://stackoverflow.com