Add chroot_bindings for exec driver to configure bind-mounts #2333
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.
Addresses #2115.
As ability to bind-mount parts of host FS while running under
exec
driver is essential for our organization to be able to adopt Nomad I decided to give it a shot. I've made a build from this branch and it runs without an issue on dozens of hosts while we continue our experiments with Nomad. Would be amazing if it could become a part of Nomad itself.In terms of the implementation I think it's done although it'd be nice to add few tests. Also I'm not sure about styling - whether config option name is appropriate and so on so I decided to bounce this PR with Hashicorp and community. If it's something you don't mind to merge into the core I'd be glad to polish the PR unless you're happy with it or handle the sources to you (well, I already did that :) ) if you prefer to finish it on your own.
Please let me know what you think.