Skip to content
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

Merged
merged 4 commits into from
Jul 31, 2020

Conversation

pravindahal
Copy link

@pravindahal pravindahal commented Jul 28, 2020

  • adds new tests (if appropriate)
  • add a changelog entry in the changes/ directory (if appropriate)
  • updates docstrings for any new functions or function arguments, including 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

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.
@marvin-robot
Copy link
Member

Here I am, brain the size of a planet and they ask me to welcome you to Prefect.

So, welcome to the community @pravindahal! 🎉 🎉

@pravindahal pravindahal changed the title Use relative paths in generated Dockerfile even on Windows Revert back to using relative paths in generated Dockerfile on Windows Jul 28, 2020
@codecov
Copy link

codecov bot commented Jul 28, 2020

Codecov Report

Merging #3044 into master will not change coverage.
The diff coverage is 50.00%.

@joshmeek
Copy link

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?

@lauralorenz
Copy link

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.

@lauralorenz
Copy link

also cc'ing @thomasfrederikhoeck in case they want to check

@thomasfrederikhoeck
Copy link
Contributor

@lauralorenz I will check it within a couple of hours

@thomasfrederikhoeck
Copy link
Contributor

LGTM 👍

@joshmeek joshmeek merged commit 3ed0f91 into PrefectHQ:master Jul 31, 2020
@pravindahal pravindahal deleted the dockerfile-path-on-windows-fix branch August 10, 2020 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants