Tag : google-cloud-run

Im using the Google Cloud Run service to host my Spring application in a docker container. The database is running in the Google SQL service. My problem is that the requests from the application to the database can take up to 2 minutes. See the Google Cloud Run log (the long requests are painted yellow). ..

Read more

Trying to pass runtime Environment variable from Cloud Run > Variables Environment variables: Name: api_service_url Value: https://someapiurl.com Below is Dockerfile. I tried to pass through ARG through CONTAINER tab CONTAINER arguments as well In both cases echo in Dockerfile didn’t receive those parameters in build log. Container is NGINX instance with React build output. App ..

Read more

I am quite new to Docker and containers in general. I build a small flask-app using the factory pattern. i am trying to deploy that app on GCP (Cloud Run). I first crated my imaged (no errors) with:gcloud builds submit –tag gcr.io/project_001/helloworld Then, I tried to deployed it on Cloud Run, where it failed: gcloud ..

Read more

Expected behavior: I can run a container I’ve built using an Apple M1 chip. Observed behavior: Assuming you have a Google Cloud Run account and can push Docker images to Google Container Registry. I’m using https://github.com/seenickcode/trivial-go-api for this example. `git clone [email protected]:seenickcode/trivial-go-api.git’ cd trivial-go-api docker build -t gcr.io/<YOUR GCR PROJECT ID>/example . docker push -t ..

Read more

I’m trying to deploy a Node project with a Dockerfile to Google Cloud Run with the gcloud beta run deploy command. Long story short, I would like to copy my local node_modules/my-module after running RUN npm install in the Dockerfile: COPY node_modules/my-module /app/node_modules/my-module/ (I only do this while in development, to avoid committing and pushing ..

Read more