gcloud

Docker build failing when using gcsfuse to mount google storage

牧云@^-^@ 提交于 2019-12-07 03:28:46
问题 I have been trying to mount SQL and a storage bucket to my docker WordPress container. It appears to succeeding in mounting SQL, but failing mounting the bucket. The instance is based of of this post. I have attached the Docker file and error below, as well as my build command. Build command: docker build -t ic/spm . Dockerfile: FROM wordpress MAINTAINER Gareth Williams <gareth@itinerateconsulting.com> # Move login creds locally ADD ./creds.json /creds.json # install sudo, wget and gcsfuse

How do I retrieve my App Engine app's source code from the `gcloud` tool?

≡放荡痞女 提交于 2019-12-06 14:05:34
问题 I've migrated to a new system and lost my local copy of my App Engine app. Foolishly, I didn't use source control. I know I've used the gcloud tool to retrieve the source code of my project in the past, but I don't seem to be able to find how to do it again. Everything I find points toward how to use appcfg.py , which didn't come with gcloud . I know I've used gcloud for this purpose before with no issues, though, so I'm perplexed as to how I can't find the command anymore. Furthermore, this

403 status on deleting modules through gcloud preview app

牧云@^-^@ 提交于 2019-12-06 10:51:45
问题 I currently use gcloud preview app modules delete <module_name> --version <version_to_delete> with a service account to clean up old module versions for managed vms. This has been working great up until last week. I am now getting the error below. ERROR: (gcloud.preview.app.modules.delete) Error Response: [403] Project has not enabled the API. Please use Google Developers Console to activate the API for your project. Details: [[{"@type": "type.googleapis.com/google.rpc.Help", "links": [{

Appengine deployments are extraodinarily slow today?

▼魔方 西西 提交于 2019-12-06 10:37:48
We have a small java project need to deploy it include 9000+ files command : mvn gcloud:deploy but I get the Log: ... [INFO] INFO: Uploading [/home/steven/work/idigisign/target/appengine-staging/__static__/node_modules/rx/src/core/linq/observable/when.js] to [7dfb30ad32893c5042dba03601f006a40419fab0] [INFO] DEBUG: Uploading [/home/steven/work/idigisign/target/appengine-staging/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js] to [7e0725897d7b99c3c33b56915d202e2dde552ea9] [INFO] INFO: Uploading [/home/steven/work/idigisign/target/appengine-staging/assets/global/plugins

Deploying a nodejs app to the google cloud platform [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-06 05:47:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I signed up for the free trial of the google cloud platform, and I'm stuck. My application is a node server using express. It needs to connect to a mongodb cluster. I just need to be able to serve a couple of pages. How could I do this using the compute engine. Is there a really simple tutorial to follow to

How to install new software onto a GCP flexible environment VM

核能气质少年 提交于 2019-12-06 01:38:27
I have a ruby on rails app running on a Google Cloud Platform VM running on the app engine flexible environment. It looks like it installs most of the software on the VM when I deploy the app with gcloud --project project-name preview app deploy I think it installs rails and other software from reading the temporary dockerfile it creates. It grabs the info for the dockerfile from the app.yaml file (I got this setup from following their tutorials). This was working fine for me but now I need to install ImageMagick onto the server to manipulate images on the site. Normally you do this by running

Change storage class of (existing) objects in Google Cloud Storage

◇◆丶佛笑我妖孽 提交于 2019-12-06 01:30:28
Good day! I recently learnt of the new storage tiers and reduced prices announced on the Google Cloud Storage platform/service. So I wanted to change the default storage class for one of my buckets from Durable Reduced Availability to Coldline, as that is what is appropriate for the files that I'm archiving in that bucket. I got this note though: Changing the default storage class only affects objects you add to this bucket going forward. It does not change the storage class of objects that are already in your bucket. Any advice/tips on how I can change class of all existing objects in the

How to authenticate with a Google Service Account in Jenkins pipeline

给你一囗甜甜゛ 提交于 2019-12-05 23:16:06
问题 I want to use gcloud in Jenkins pipeline and therefore I have to authenticate first with the Google Service account. I'm using the https://wiki.jenkins.io/display/JENKINS/Google+OAuth+Plugin which holds my Private Key Credentials. I'm stuck with loading the credentials into the pipeline: withCredentials([[$class: 'MultiBinding', credentialsId: 'my-creds', variable: 'GCSKEY']]) { sh "gcloud auth activate-service-account --key-file=${GCSKEY}" } I also tried it with from file, but without luck.

gcloud ssh — No supported authentication methods available (server sent: publickey)

被刻印的时光 ゝ 提交于 2019-12-05 18:36:24
I am trying to follow a simple process of ssh'ing to the instance that is described here . Unfortunately I keep getting this error: Server refused our key FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey) It looks like I do everything correctly. I create an new ubuntu instanse Try to log in using $ gcloud compute username@ssh example-instance --zone us-central1-a Getting a warning that ssh key is going to be generated WARNING: You do not have an SSH key for Google Compute Engine. WARNING: [C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk

Spring Boot with Google Cloud Datastore API fails to run

流过昼夜 提交于 2019-12-05 16:10:24
I am trying to configure Google Cloud Datastore API with Spring Boot in order to deploy it on Compute Engine. When I try to run the Spring Boot project locally, I keep on getting the following error org.apache.catalina.core.ContainerBase : A child container failed during start Problem I built a demo project using Spring Initizr ( http://start.spring.io/ ) and added the maven dependency for Google Cloud Datastore API as following <dependency> <groupId>com.google.cloud</groupId> <artifactId>gcloud-java-datastore</artifactId> <version>0.2.0</version> </dependency> I am able to build the project