1

I am trying to publish an application I wrote in .NET Core with docker and a mounted volume. I can't really figure out or see any clear solution to my issue that will be cheap (Its for a university project.)

I tried running a docker-compose via a cloudbuild.yml linked in this post with no luck, also tried to put my dbfile in a firebase project and tried to access it via the program but it didn't work. I also read in the GCP documentation that i can probably use Filestore but the pricing is way out of budget for me. I need to publish an SQLite so my server can work correctly, that's it.

Any help would be really apreciated!

Renaud Tarnec
  • 79,263
  • 10
  • 95
  • 121
Manuel Lopez
  • 13
  • 1
  • 2

1 Answers1

1

Basically, you can't mount volume in Cloud Run. It's a stateless environment and you can't persist data on it. You have to use external storage to persist your data. See the runtime contract

WIth the 2nd execution runtime environment, you can now mount Cloud Storage bucket with GCSFuse, and Filestore path with NFS

guillaume blaquiere
  • 66,369
  • 2
  • 47
  • 76
  • Thank you so much, I think I will consider implementing the 2nd execution runtime environment for my project. Thank you a whole lot!!! – Manuel Lopez Jan 16 '23 at 18:31