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

Add a --context-path for build.sh #8557

Merged
merged 1 commit into from
Jul 27, 2021
Merged

Add a --context-path for build.sh #8557

merged 1 commit into from
Jul 27, 2021

Conversation

leandron
Copy link
Contributor

Add a --context-path for build.sh, allowing to test Dockerfiles in different directories, and still get relative paths to work.

  • Add new option --context-path to build.sh
  • Keeps the default as the dirname of the Dockerfile, so
    no changes expected in the current behaviour

cc @Mousius @areusch @mehrdadh for reviews

docker/build.sh Outdated Show resolved Hide resolved
@mehrdadh
Copy link
Member

@leandron LGTM. Thanks for this change!

@areusch
Copy link
Contributor

areusch commented Jul 26, 2021

just curious what's the use case for this change?

@leandron
Copy link
Contributor Author

just curious what's the use case for this change?

We have some tooling that will use Dockerfiles out of tree (in a temp directory), but it needs to keep the context pointing to the tree, in order to resolve relative paths.

in different directories, and still get relative paths to work.

* Add new option --context-path to build.sh
* Keeps the default as the `dirname` of the Dockerfile, so
  no changes expected in the current behaviour
@leandron
Copy link
Contributor Author

It seems CI is happy now, can I get a review and a merge if you're happy? @areusch

@areusch areusch merged commit f2354ee into apache:main Jul 27, 2021
@leandron leandron deleted the build_sh_context_path branch September 8, 2021 11:57
ylc pushed a commit to ylc/tvm that referenced this pull request Sep 29, 2021
…ache#8557)

in different directories, and still get relative paths to work.

* Add new option --context-path to build.sh
* Keeps the default as the `dirname` of the Dockerfile, so
  no changes expected in the current behaviour
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
…ache#8557)

in different directories, and still get relative paths to work.

* Add new option --context-path to build.sh
* Keeps the default as the `dirname` of the Dockerfile, so
  no changes expected in the current behaviour
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.

None yet

4 participants