#change ownership of our applications RUN chown -R www-data:www-data /var/www/html/storage RUN chown -R www-data:www-data /var/www/html RUN chown -R www-data:www-data /var/www/html/bootstrap/cache RUN chmod -R 755 /var/www/html/storage RUN chmod -R 755 /var/www/html/bootstrap/cache These are the above commands I added in my dockerfile to avoid permission error but the issue is when i run this dockerfile in my ..
When I run docker build on my codebase, it doesn’t apply the file modifications. I’m using TypeScript with Node as the language/framework. Here is my Dockerfile: #Imports the node runtime/os base image FROM node:14 #like cd into the working directory WORKDIR /usr/src/app ENV PORT 8080 #copies the package.json from the local dev machine and pastes ..
The issue has appeared recently and the previously healthy container now enters a sleep loop when a shutit session is being created. The issue occurs only on Cloud Run and not locally. Minimum reproducible code: requirements.txt Flask==2.0.1 gunicorn==20.1.0 shutit Dockerfile FROM python:3.9 # Allow statements and log messages to immediately appear in the Cloud Run ..
I just started using fastapi in production and I am noticing strange 503 errors. For example, I have send a request to https/mysite.com/endpoint and it will work at first but if I nest it in a for loop it’ll give me the 503 service unavailable randomly(if I retry in a min it works!). For my ..
We’re using Cloud Run and Cloud SQL on our current setup with Hasura 2.0.9 (GCP) Cloud Run is setup to run minimum 5 instances and max 150 and about ~80-90 instances are running on average. Cloud SQL is setup to accept up to 500 connections (4vCPU and 15GB of RAM) Average requests per second on ..
I want to deploy the Hyperledger DotNet Mediator Agent on GCP Cloud Run. I have the below Dockerfile. FROM streetcred/dotnet-indy:1.14.2 AS base WORKDIR /app # Expose the default port EXPOSE 5000 COPY mediator ./mediator WORKDIR mediator RUN dotnet restore "MediatorAgent.csproj" RUN dotnet build "MediatorAgent.csproj" -c Release -o ./build RUN dotnet publish "MediatorAgent.csproj" -c Release -o ..
I have a strange problem. I setup continous delivery for cloud run when I commit to a specific dev branch of my github code. When I commit, I see it notices the change and builds the code but it does not automatically deploy it to the cloud run instance. I have to manually select edit ..
I’m using Django, uwsgi and nginx in Cloud Run. A Cloud Run service can’t show django logging and error log. That’s why Error Report can’t use ,too. Cloud Run log is like this. It can not see stack trace… I can’t know what error happened in the server. This is my settings. Django settings.py LOGGING ..
If I am running a container within cloud run and do a print statement in my python code. Where can I view it? cloud logs seem to show logs for the contain itself(build, etc)? to debug my code often I do write statements that help me figure what’s going on. Where would that print output ..
I am very lost on the steps with gcloud verse docker. I have some gradle code that built a docker image and I see it in images like so (base) Deans-MacBook-Pro:stockstuff-all dean$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE gcr.io/prod-stock-bot/stockstuff latest b041e2925ee5 27 minutes ago 254MB I am unclear if I need to run ..