Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

My cloud run is giving an error and not starting.

I have created a docker container which have a core java jar file inside it and it runs fine on GKE but I want to run it on google cloudRun but it is giving me error Ready condition status changed to False for Revision tomcat-00002-zxw with message: The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.

 

Here is my Docker file 


FROM openjdk:8-jre-slim

WORKDIR /lead

COPY . .

EXPOSE 8080

ENTRYPOINT ["java", "-jar", "/lead/opt/Sync/Sync.jar"]

 

My container does not have an HTTP Request/Response system similar to a web server it is a core java program and not a spring applicaiton does cloud run support core java apart from spring boot application.
Note : My application is not a web-app its a core java simple application Is there any other method apart from cloud run which can run the jar inside the container

0 1 403
1 REPLY 1

Hi, would this make more sense as a Cloud Run job? Cloud Run jobs are meant for workloads that run and then exit when done, such as scripts and batch jobs. Services are meant for workloads that run indefinitely and listen for requests.

If your application fits into neither category, I'd love to hear more about how it communicates with the outside world/receives work to do. Does it, for example, pull work for a queue? 

Top Solution Authors