-
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
Revert back to using relative paths in generated Dockerfile on Windows #3044
Revert back to using relative paths in generated Dockerfile on Windows #3044
Conversation
PrefectHQ#2390 introduced a change so that on Windows, Dockerfile contained absolute paths which prevents docker build from working when using wsl backend or ssh (seehttps://github.com/PrefectHQ/issues/3023). The fix here is to use relative paths in Dockerfile while passing absolute path to client.build.
Here I am, brain the size of a planet and they ask me to welcome you to Prefect. So, welcome to the community @pravindahal! 🎉 🎉 |
Thanks for the PR @pravindahal! While the code appears fine I don't have a windows environment to give this a test just yet so maybe someone can verify? |
Hi @pravindahal @joshmeek for what it's worth, I just tried out the test case back from #2332 but using this branch on regular Windows 10 AND MacOS and had no issues, so since @pravindahal can confirm it works for wsl/ssh I think we are good. |
also cc'ing @thomasfrederikhoeck in case they want to check |
@lauralorenz I will check it within a couple of hours |
LGTM 👍 |
changes/
directory (if appropriate)docs/outline.toml
for API reference docs (if appropriate)What does this PR change?
#2390 introduced a change so that on Windows, Dockerfile contained absolute paths which prevents docker build from working when using wsl backend or ssh (see #3023).
The fix here is to use relative paths in Dockerfile (i.e. revert to behavior before #2390) but pass absolute path of Dockerfile to
client.build
.For previous attempt at addressing this problem, see the discussion here: #3035