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). ..
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 ..
I have a folder called /uploadswhere I store files uploaded to the cloud using nestjs, I use this code to get the content of a file: return of(res.sendFile(join(process.cwd(), "uploads/"+filename))); the problem occurs when I rebuild the image then the content of the folder gets deleted, here’s my dockerfile FROM node:12.13-alpine WORKDIR / ENV PORT=8080 COPY ..
I have a folder named /uploads that saves pictures uploaded to the cloud, when I build the code in cloud run using docker I don’t find the files that was stored in /uploads FROM node:12.13-alpine WORKDIR /app ENV PORT=8080 COPY . . RUN npm install COPY . . EXPOSE 8080 RUN npm run build CMD ..
Currently I trigger a Cloud Build each time a pull request is completed. The image is built correctly, but we have to manually go to Edit and Deploy New Revision and select the most recent docker image to deploy. How can we automate this process and have the a container deployed from the image automatically? ..
I spend the last couple of days trying to find what I have done wrong but I am still not able to figure out because I am able to run the app locally using flask run and also using Docker using docker-compose up –build. My issue is my Cloud Run deployment is successful but Service ..
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 ..
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 ..
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 ..
I’m making a realtime multiplayer game and I have an idea on how to structure the backend, but I don’t even know if its possible, let alone how to build and deploy it. Basically I want to deploy my backend as a container to cloud run but instead of syncing data through a database common ..