0
votes

I am trying to get a simple hello world app running on google run using this tutorial :

https://cloud.google.com/run/docs/quickstarts/build-and-deploy#java

I have to first create a project "hello world", and in my browser it looks like this :

enter image description here

enter image description here

Now I am trying to build/containerize my app. I do this locally on my computer using the gcloud shell. I assume that is what the tutorial is suggesting.

I go into my helloworld directory and the tutorial says that I should use this command :

gcloud builds submit --tag gcr.io/PROJECT-ID/helloworld

OK. So PROJECT-ID is found by calling this command :

gcloud config get-value project

My project Id (I think...) is sboot-project-id. Based on what I see in my console.

enter image description here

Then according to what I should do, my next step would be :

gcloud builds submit --tag gcr.io/sboot-project-id/helloworld

However if I run this command I get this error :

The project to be billed is associated with an absent billing account.

I have billing activated so this error seems confusing to me.

What is this error trying to tell me?

Have I got project-id wrong?

1

1 Answers

1
votes

Your project id as seen from the screenshot is helloworld-289513.

gcloud config get-value project

gives you the current active project in your environment.

You can do one of two things

1.

gcloud config set project helloworld-289513

This will set the current project in your environment to the helloworld project

2.

gcloud builds submit --tag gcr.io/sboot-project-id/helloworld --project="helloworld-289513"

to run the command against the helloworld project, without changing the environment project.