DEV Community

Deploying Nuxtjs on Google Cloud Run (Serverless)

SaKKo on April 21, 2019

Better cloud-build.yaml file pull older image before build. Save build time. UPDATE Cloud run now available in almost every region (inc...
Collapse
 
badgyy profile image
Badgyy

Hello,

Im getting ERROR: (gcloud.builds.submit) interpreting ./cloud-build.yaml as build config: .steps[0].images: unused setting up all according to the tutorial, any idea to help?

Collapse
 
sakko profile image
SaKKo

sorry i just saw your question, can i see your yml?

Collapse
 
hazemkhaled profile image
Hazem Khaled

file created .yml, just rename the file then run the command again

Collapse
 
ben_the_husi profile image
Ben

Hi SaKKo, thanks for the tutorial this is what I was looking for.
However, I am getting this error:

Error response from daemon: Get gcr.io/v2/cloud-builder/docker/man... denied: Token exchange failed for project 'cloud-builder'. Please enable or contact project owners to enable the Google Container Registry API in Cloud Console at console.cloud.google.com/apis/api/... before performing this operation.

This API is enabled, I've checked. Any idea what's wrong?

Collapse
 
limjix profile image
limjix

Nice! I am also using the same method for my nuxt application. Love cloud run to the max!
Shoutout from Malaysia btw! Wish Cloud Run came nearer.

One thing I still can't figure out is why theres no need for nginx on cloud run containers. Any idea?

Collapse
 
sadiqpang profile image
Sadiqu Ali PK • Edited

Hi,
Im getting
Deployment failed

ERROR: (gcloud.beta.run.deploy) Cloud Run error: Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable. setting up all according to the tutorial, any idea to help?

Collapse
 
roryjcurve profile image
roryJcurve

Thanks for this! got this up and running with no problem.

Ended up combining with firebase hosting (firebase.google.com/docs/hosting/c...) and now we have multiple apps running on the same domain ie our-domain/app1 and our-domain/app2

Collapse
 
gauravnavgire profile image
Gaurav Navgire

Hi Sakko, Thanks a ton for this tutorial. This worked just fine for me. I was looking for such kind of solution.
And yes I'm in process to figure out the Cloud Run pricing :)

Collapse
 
sakko profile image
SaKKo

happy to hear you find it useful. have fun

Collapse
 
sub8s profile image
Subrahmanya S M • Edited

@sakko any early access program for Singapore region is available please post here :) (DM request @steren in Twitter )

Collapse
 
sakko profile image
SaKKo

oh~ there is an early access? how can I get it?

Collapse
 
rehamhabbas profile image
Reham Habbas

Got an error

Step #0: Pulling image: gcr.io/marketplace-304006/docker
Step #0: Using default tag: latest
Step #0: Error response from daemon: manifest for gcr.io/marketplace-304006/docker:latest not found: manifest unknown: Failed to fetch "latest" from request "/v2/marketplace-304006/docker/manifests/latest".

Collapse
 
artjcdev profile image
u-jc

Hello,

Please, for example, bring to the Cloud
Frontend -> Nuxt
Backend -> Nodejs + Express API (MYSQL and File storage doc, img, etc ,.)
How to do?

Collapse
 
sakko profile image
SaKKo

setup another server for your backend?
or if it support docker, you can deploy you APIs on Cloud Run, just make sure that your app export process.env.PORT to public

Collapse
 
sub8s profile image
Subrahmanya S M

We connect via firebase domain hosting also , and how to enable caching for web app? Any solution available via firebase hosting or domain connect