Support for using host workdir inside container; change default container workdir to /container/bits/sw #75
+27
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR proposes to change the default build location when docker is used. Currently build with docker uses
/swand the new relocate all change will try to relocate all file with/swin them. As/swis very generic so there is a good chance that relocation script can do unwanted changes. This PR proposes to change default workdir inside container to/container/bits/swe.g. we mount<host>/workdirto/container/bits/sw.A new command-line option
--container-use-workdiris also added which will mount<host>/workdirto<host>/workdirinside container. This allows to have local packages build with correct path and one should be able to use them directly (on correct OS/ARCH host) or start a container without explicitly mounting<host>/workdirto some magic/container/bits/swpath.