-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Improve checkMountableFile on Windows with unusual paths #2296
Conversation
…or correct checkMountableFile flag detection on Windows)
1d275f0
to
a5e3c58
Compare
/AzurePipelines run Windows 10 - Docker for Windows |
Azure Pipelines successfully started running 1 pipeline(s). |
Thanks @bedla - this looks pretty sensible to me. Thank you for working out what was going wrong. I'd like to test this a bit more on a range of Windows machines; have kicked this off on our Windows CI environment, and will try on a separate machine later. |
I can imagine checking if running on Windows and/or having tilde in path, than calling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy that this is correct, and more correct that the current code. I've tested in another Windows environment too. Happy to merge - thanks for the contribution @bedla!
Released in 1.13.0! Thanks for the contribution @bedla 😃 |
Hi,
after update to newer Docker (i suspect it) I found that
checkMountableFile
check returns incorrect values for/dummy
volume.I have created PR to correctly resolve .jar resource mountable file from temp directory.
Problem is that when
org.testcontainers.utility.MountableFile#extractClassPathResourceToTempLocation
is called it callsjava.nio.file.Files#createTempDirectory
which resolves base temp dir fromjava.io.tmpdir
system property. My environment is shortened directory containing tilde in name which results in error from docker ... see below.What do you think about this fix?
Thx,
Ivos
my environment:
original exception/log