community icon indicating copy to clipboard operation
community copied to clipboard

Issue with tutorials/building-android-apk-with-cloud-build-gradle-docker-image.md

Open syslogic opened this issue 5 years ago • 5 comments

The account which hosts fullstackgcp/gradle seems to be out of credit:

Already have image (with digest): gcr.io/cloud-builders/docker
Unable to find image 'gcr.io/fullstackgcp/gradle:latest' locally
latest: Pulling from fullstackgcp/gradle
e79bb959ec00: Pulling fs layer
d4b7902036fe: Pulling fs layer
1b2a72d4e030: Pulling fs layer
d54db43011fd: Pulling fs layer
1a97c78dad71: Pulling fs layer
6dcb79eeeda4: Pulling fs layer
bd56246cf4fd: Pulling fs layer
88cea60f56c5: Pulling fs layer
1b4368c500a3: Pulling fs layer
8485dee1c89f: Pulling fs layer
d54db43011fd: Waiting
1a97c78dad71: Waiting
6dcb79eeeda4: Waiting
bd56246cf4fd: Waiting
88cea60f56c5: Waiting
1b4368c500a3: Waiting
8485dee1c89f: Waiting
/usr/bin/docker: error pulling image configuration: error parsing HTTP 403 response body: invalid character '<' looking for beginning of value: "<?xml version='1.0' encoding='UTF-8'?><Error><Code>UserProjectAccountProblem</Code><Message>User project billing account not in good standing.</Message><Details>The billing account for the owning project is disabled in state delinquent</Details></Error>".
See '/usr/bin/docker run --help'.

syslogic avatar May 13 '20 23:05 syslogic

Meanwhile I've wrote cloudbuild-android, which provides a similar docker container (in the own Container Registry). Since Android projects merely use the Gradle wrapper, it is based upon openjdk and not gradle. Still would need to split the Docker build from the Gradle build; it suffices as an example, but it's still a work in progress.

syslogic avatar May 14 '20 20:05 syslogic

@Timtech4u , this report suggests that a resource that your tutorial depends on is no longer available.. Could you take a look?

ToddKopriva avatar Jun 30 '20 23:06 ToddKopriva

HI @ToddKopriva , I'd love to take a look. @syslogic would you like to reach out so I'll update this with your tutorial. Email is on my profile. Thanks

Timtech4u avatar Jul 02 '20 07:07 Timtech4u

@Timtech4u I'd guess the mere problem was, that you've hosted the built container for everybody. My version does not provide any image, but only the project which builds it (no traffic = no costs). Since GitHub nicely integrates with Cloud Build, anybody can use that as source repository...

The next 2-3 weeks I probably won't find much time, because I managed to find a job. And it's not exactly a tutorial, but only a full-blown example, which can be used as it is. Due to the MIT license, you can do whatever you want with it, while mentioning me.

syslogic avatar Jul 05 '20 11:07 syslogic

@Timtech4u , is this still an open issue? Is there still a problem that needs to be fixed?

ToddKopriva avatar Sep 13 '21 23:09 ToddKopriva