-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Allow Windows Docker containers to map volumes #13584
Conversation
Hi @derBroBro Thanks for submitting this PR - it looks good to me :) Given we're expanding the scope of the Thanks! |
as always it depends ;-) |
Hi @derBroBro No worries, so that we can test this functionality is supported on both platforms in the future - it'd be great to add some test cases to the regular expression used in the Validation method :) The simplest way to do that is to refactor the Validation method out into a separate function - as can be seen in this example - and then add some tests covering both the existing use-case (as can be seen in this example) (i.e. Linux Paths) for example:
and then some new use-cases (i.e. some Windows paths) - for example:
Presuming you've named the validation method
You should then be able to run this test via:
Thanks! :) |
ping @derBroBro ;) |
I hope the changes are what you looked for. 😃 Output:
|
LGTM! Thanks for adding the tests :) |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
As windows is also support for Docker now we made our first testes and noticed that the notation "C:.." is not accepted yet.
The current code is requiring absolute paths for volume mounts in the Linux notation ("/etc...").
To correct this behavior I changed the regex to accept also the Windows pattern.