-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple profile for docker compose project #252
Comments
|
Thanks for the detailed explanation, I will play with it and come back to you, in meanwhile, what is the
as far as I understand, setting the |
@mhamri Those properties don't effect the container, but the .NET build. If you look through Microsoft.NET.Sdk.props (which is what I did when drafting my response). Those properties are all set by default for a Debug Configuration, and control telling the compiler to optimize your code for enabling debugging rather than for production performance. |
Hi there,
discussing with @poppastring, he asked me to create an issue in here
I played around with the docker-compose project and I have a couple of problem with it
1- the docker project always is created in the root folder and if you want to add multiple of that, it always overrides each others. it's a disaster for a mono repo.
2- but let's assume that there should be a single docker project in a solution. then we should be able to create multiple profile. depending on the set of applications that we want to run.
for example one profile can be docker-compose for backend+ docker compose for db & caching.
another profile is without caching. another is for running a test. ....
3- if I want to mix and match different docker-compose file, there is only a single XML property in the
dcproj
file. first, thedcproj
is not easily editable, if I right-click on the docker-project, I won't get edit project, as it's available for other project types.but as you can see, this isn't the case for a
dcproj
second, there is no way to tell the docker tools that for example the database is running out of the docker-compose. this way my developer needs to run a set of docker manually outside of the visual studio. I searched if I can find any target in the MSBuild that can make the running of extra composer automated inside the
dcproj
but I couldn't hook into any available targe.t4- what I was asking from @poppastring was to have something like launchSetting.Json in the docker project and have all the
dcproj
properties configurations in a JSON file, instead of thedcproj
. this way we can have multiple profiles with multiple settings.5-also regard to the available properties in the
dcproj
, there is a lacking of having a property that let me set the docker-compose context folder.dcproj
always assume that the context starts from where it is. referring back to#1
it should be configurable if you let more than onedcproj
in a solution.6- I'm loading some extra compose files for Redis or frontend (angular) with
AdditionalComposeFilePaths
. later I noticed docker tools is creating anobj
folder next to those docker files. I'm not sure why docker tools should add those extra files next to the docker file and not docker compose. especially it's not a dotnet projectThe text was updated successfully, but these errors were encountered: