Closed MuhammadAshouri closed 6 months ago
Hi Muhammad! Welcome to Ocelot world! 🐯
I can't get it, is it a bug or do you ask the question "How to configure"?
What I see now is misconfiguration issue... Your Program.cs
code is very short!
Please upload whole solution to GitHub for review, or attach more artifacts: JSON config, Ocelot Startup C# code, and Ocelot app logs with errors/exceptions. Configuration feature docs:
But when I run app in docker container I'm getting access denied in AddJsonFile
Yeap, setup of Docker environment is out of the scope of Ocelot. But, I agree that we don't have much documentation on how to properly run Ocelot in a Docker environment: Search for "docker". Seems, we need to write more documentation for Docker. But for now, you could refer to Microsoft Learn docs looking for Kestrel & Docker articles.
I've checked container folders and /app/ocelot.json is present (but it's read-only)
This is Linux OS in Docker environment issue (WSL is Linux, aka Ubuntu Linux build). Please refer to Linux or Ubuntu documentation, or read more docs for WSL setup. If you will still be sure that this Ocelot issue when can't write Ocelot file to Linux OS drive then let us know how we could fix this.
I'm using ocelot in dotnet 8 Running app on windows (self host) is totally fine But when I run app in docker container I'm getting access denied in AddJsonFile I've checked container folders and /app/ocelot.json is present (but it's read-only)
Here is my
Program.cs
and even when I'm trying to remove read-only attribute I'm getting the same error
I've already checked issues and haven't find the solution except this #1216 which seems like it isn't finished yet
Specifications