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

Support windows style dockerfile paths for build cmd #11002

Merged
merged 1 commit into from Feb 27, 2015
Merged

Support windows style dockerfile paths for build cmd #11002

merged 1 commit into from Feb 27, 2015

Conversation

@ahmetb
Copy link
Contributor

@ahmetb ahmetb commented Feb 25, 2015

Currently TestBuildRenamedDockerfile fails since passing
custom dockerfile paths like:

docker build -f dir/file .

fails on windows because those are unix paths. Instead, on
windows, accept windows-style paths like:

docker build -f dir\file .

and convert them to unix style paths using the helper we
have in pkg/archive so that daemon can correctly locate
the path in the context. This can fix the test without touching it.

Signed-off-by: Ahmet Alp Balkan ahmetalpbalkan@gmail.com
cc: @unclejack @tiborvass @jfrazelle

Currently TestBuildRenamedDockerfile fails since passing
custom dockerfile paths like:

    docker build -f dir/file .

fails on windows because those are unix paths. Instead, on
windows accept windows style paths like:

    docker build -f dir\file .

and convert them to unix style paths using the helper we
have in `pkg/archive` so that daemon can correctly locate
the path in the context.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
@ahmetb
Copy link
Contributor Author

@ahmetb ahmetb commented Feb 25, 2015

https://jenkins.dockerproject.com/job/Windows-PRs/81/console
=== RUN TestBuildRenamedDockerfile
[PASSED]: build - rename dockerfile
--- PASS: TestBuildRenamedDockerfile (3.52s) 👍

@jessfraz
Copy link
Contributor

@jessfraz jessfraz commented Feb 25, 2015

LGTM

@ahmetb
Copy link
Contributor Author

@ahmetb ahmetb commented Feb 27, 2015

anyone else?

@duglin
Copy link
Contributor

@duglin duglin commented Feb 27, 2015

sorry - was distracted this week. LGTM

jessfraz pushed a commit that referenced this issue Feb 27, 2015
…-fix

Support windows style dockerfile paths for build cmd
@jessfraz jessfraz merged commit 1061c56 into moby:master Feb 27, 2015
1 of 2 checks passed
@ahmetb ahmetb deleted the win-cli/dockerfile-path-fix branch Feb 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants