gcloud

How to update Google Cloud DNS with ephemeral IP for an instance

試著忘記壹切 提交于 2019-12-20 14:23:40
问题 I have couple of instances on GCE that I don't really need static addresses for, but I still need to make them accessible via dns name. Since ephemeral external ip addresses change every time an instance is restarted, I thought that I could use some sort of startup script to update dns entry for that instance in Google Cloud DNS (a bit like dyndns). Did I miss something and there is an easier way to map ephemeral external ip addresses to a dns record via gcloud? If not, any pointers on how to

bq cmd query Google Sheet Table occur “Access Denied: BigQuery BigQuery: No OAuth token with Google Drive scope was found” Error

纵饮孤独 提交于 2019-12-20 12:37:04
问题 I have a table connect with Google Sheet, use WebUI query this table success, but if I use bq cmd query, It will echo error msg: Access Denied: BigQuery BigQuery: No OAuth token with Google Drive scope was found 回答1: I presume you are using bq command line tool which comes with Cloud SDK. To use bq you had to procure credentials, most likely you used gcloud auth login By default these credentials do not get drive scope. You have to explicitly request it via gcloud auth login --enable-gdrive

How to execute a designated test suite class in Firebase Test Lab

痴心易碎 提交于 2019-12-20 04:53:15
问题 I have an espresso test suite class like this package instrumentedtest; import org.junit.ClassRule; import org.junit.rules.ExternalResource; import org.junit.runner.RunWith; import org.junit.runners.Suite; @RunWith(Suite.class) @Suite.SuiteClasses({ Test1.class, Test2.class, Test3.class }) public class POSRuleSuite { @ClassRule public static ExternalResource testRule = new ExternalResource() { @Override protected void before() throws Throwable { System.out.println("Testing starts.........");

How to execute a designated test suite class in Firebase Test Lab

为君一笑 提交于 2019-12-20 04:53:04
问题 I have an espresso test suite class like this package instrumentedtest; import org.junit.ClassRule; import org.junit.rules.ExternalResource; import org.junit.runner.RunWith; import org.junit.runners.Suite; @RunWith(Suite.class) @Suite.SuiteClasses({ Test1.class, Test2.class, Test3.class }) public class POSRuleSuite { @ClassRule public static ExternalResource testRule = new ExternalResource() { @Override protected void before() throws Throwable { System.out.println("Testing starts.........");

How do I run custom python script in Google App engine

左心房为你撑大大i 提交于 2019-12-20 04:08:29
问题 Apologies for the long detailed question. Here goes... The file has the name send_daily_report.py and uses some libraries which are detailed in a requirements.txt file. My app.yaml looks as follows: runtime: python27 threadsafe: false handlers: - url: /send_daily_report script: send_daily_report.py libraries: - name: ssl version: latest My cron.yaml looks as follows: cron: - description: "Send unsent subscriptions to Glocell rewards every 1 minute" url: /send_daily_report schedule: every 1

Unable to SSH to Google Cloud

こ雲淡風輕ζ 提交于 2019-12-19 04:35:11
问题 I installed the Google Cloud SDK Thought Web UI I created a new instance. I am not knowledgeable of SSH. I followed steps as described here: https://cloud.google.com/compute/docs/instances#sshkeys I have Window 7 OS I checked firewall rules as suggested here: https://cloud.google.com/compute/docs/troubleshooting#ssherrors I checked these through Web UI and found rule "default-allow-ssh 0.0.0.0/0 tcp:22 Apply to all targets" STEPS I FOLLOWED: 1) > gcloud auth login (default browser opens up

My java App Engine Managed VMs build doesn't deploy after 4/14/2015 update

佐手、 提交于 2019-12-19 04:06:19
问题 My java App Engine Managed VMs build doesn't deploy any more using gcloud preview app deploy target/myapp-SNAPSHOT I get this: ERROR: Found no valid App Engine configuration files in directory 回答1: The usage of gcloud preview app deploy changed in our gcloud 2015.04.14 release, you now have to specify the .yaml file for your module as well as --project projectID . The documentation should be updated shortly. For Java, we've released an updated maven plugin. In your pom.xml, please add the

Can't call public method of non-public class: public (Google gcloud library)

≡放荡痞女 提交于 2019-12-19 04:04:40
问题 I am attempting to use the gcloud library. (ns firengine.state (:import [com.google.cloud AuthCredentials] [com.google.cloud.datastore DatastoreOptions])) (-> (DatastoreOptions/builder) (.projectId "<project_id>") (.authCredentials (AuthCredentials/createForJson (clojure.java.io/input-stream service-account-path))) .build) The above clojure code is translated from the following code snippet (ellided, click on "Run elsewhere"). import com.google.cloud.AuthCredentials; import com.google.cloud

gcloud compute list networks error: “Some requests did not succeed: - Insufficient Permission”

会有一股神秘感。 提交于 2019-12-19 03:31:31
问题 I have created a project and setup a Windows 2012 VM. I am trying to list the networks in the project. Here are the steps I performed: Initially, I logged into the VM as per the credentials created when creating the VM. From there, opened the Google Cloud SDK Shell (As Administrator) Next, I set the project name as follows: C:\windows\system32> gcloud config set project <proj-name> Then, I tried to list the networks (should only be one - default). Here is the error relating to permission. C:

gcloud installation permission issue on Ubuntu 12.04

别说谁变了你拦得住时间么 提交于 2019-12-18 21:16:45
问题 I have installed PHP App Engine SDK first. Then, I installed Google Cloud SDK using: sudo curl https://sdk.cloud.google.com | bash but it's showing error while installing. Then, I installed Google Cloud SDK from a zip file, but it shows an error at the final stage of installation: /home/nikhil/google-cloud-sdk/install.sh Welcome to the Google Cloud SDK! Traceback (most recent call last): File "/home/nikhil/google-cloud-sdk/bin/bootstrapping/install.py", line 20, in <module> from