Open Kralizek opened 1 year ago
Just so I'm clear, are you expecting tye to detect the volume mount and switch to a container for the service?
That would be the icing on the cake.
The intent of my issue is that once The had detected the need for a proxy, it should mount the specified volumes to the proxy like it does with the project folder.
I realized the description of the bug wasn't clear enough so I reformulated as follows
By default Tye loads C# projects directly on the host unless there is a need for a container. If another service uses replicas or uses a dockerfile or a docker image, Tye mounts the projects as a volume to a container used as proxy.
Yea, this has nothing do with proxy containers. Tye should detect the volume mount and treat this like a container scenario.
Can you still attach the debugger to a project ran into a container? (Never tried myself)
Not easily. I haven’t looked into what it would take to make that easy
Describe the bug
By default Tye loads C# projects directly on the host unless there is a need for a container. If another service uses replicas or uses a dockerfile or a docker image, Tye mounts the projects as a volume to a container used as proxy.
Unfortunately, if the Tye configuration file specifies an additional mount, that is ignored when the project is executed on the proxy.
The volume is correctly loaded when specifying
--docker
.I noticed the issue because I am doing local development and I saw that my local override to AWS keys is being ignored and my project couldn't find my fake keys (required to access the local installation of DynamoDB).
To Reproduce
Here is a simple example:
The configuration file has a simple ASP.NET Core application. In the root of the solution I have the fake AWS profile that I want to use to use fake AWS credentials.
Here are the commands I ran to validate the faulty behavior.
Further technical details