-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add support for --project-directory #216
Comments
Hi @R0Wi, and thanks for this excellent feature report! 👍🏻 I'll add UseProjectDirectory() in the FluentAPI - OK? Cheers, |
Sounds great to me! Just let me know if i can support you by implementing or testing things 🚀 |
Hi @R0Wi, I've done a first quick attempt at this. Use the standard builder but add the UseProjectDir(".") to allow rendering You may use any environment and macros since it is a Please let me know how if it works properly or if there's something to fix or otherwise alter! Cheers, |
Great, thanks. Really looking forward to check the feature out these days 😎 |
If you'd like to help - could you please write a simple unittest for this feature? In the: Cheers, |
Sure 👍 |
I've merged it into the master so it will be available on NuGet since it won't have any compatibility issues. Don't hesitate to reopen this issue if it is not working for you. |
First of all thanks for creating this awesome library!
I have a question which might result in a feature request. My current setup contains two different
docker-compose.yml
files in two different directories (let's call themdocker-compose.v1.yml
anddocker-compose.v2.yml
). I want to setdocker-compose.v1.yml
as my base file and then have some test specific overrides indocker-compose.v2.yml
, which especially override some relative host mount points i need for my tests.docker-compose.v1.yml
:docker-compose.v2.yml
:So what i would do in my console is something like
docker-compose -f ../../../docker-compose.v1.yml -f ./docker-compose.v2.yml --project-directory . up
The important part is the
--project-directory
parameter (see https://docs.docker.com/compose/reference/). If i omit this parameter, docker-compose would try to resolve all relative host mount points to the first givendocker-compose.yml
-file (docker-compose.v1.yml
in that case). But i would like to have my relative paths resolved relative todocker-compose.v2.yml
, so relative to the current directory. According to the docs (see link above):Question: is it possible to achieve this with
FluentDocker
library? Unfortunately i did not find a possibility to add the--project-directory
-parameter and i did not find any workaround neither.Thanks so much!
The text was updated successfully, but these errors were encountered: