Hi I am new to Prefect but over last few days I ha...
# prefect-community
b
Hi I am new to Prefect but over last few days I have managed to create a few flows and executed them from Prefect Cloud and Local Agents. Now I have been playing around with using docker containers for the agents and scripts are on the containers. That is working when the container is running locally. So next I decided to try to build a docker and run it with GCP Cloud Run and CI/CD pipeline with Github Actions. That builds but failes in deployment and I get this error: Cloud Run error: 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. Logs URL: https://console.cloud.google.com/logs/viewer?project=dkpos-dev&resource=cloud_run_revision/service_name/dkpos-dev/revision_name/dkpos-dev-00002-dam&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22dkpos-dev%22%0Aresource.labels.revision_name%3D%22dkpos-dev-00002-dam%22 For more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start Has anyone managed to get this running in GCP Cloud run? Any hints are most welcomed and I have no idea how to solve this port issue. I am of course open for other ways to deploy and run my projects in containers. Basically looking for the simplest solution if possible 😄 Thanks in advance, Birkir
k
I believe your container needs to expose this PORT to provide healthchecks. Otherwise it will just shut down. We have support for Vertex though so you can try that
b
Thanks for the feedback Kevin. After some reading I think that Cloud Run is not suitable for the this. So I will have a look at Vertex