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

Allow mount source to be relative to task working directory #139

Open
alemonmk opened this issue Jun 11, 2022 · 0 comments
Open

Allow mount source to be relative to task working directory #139

alemonmk opened this issue Jun 11, 2022 · 0 comments

Comments

@alemonmk
Copy link

Per hashicorp/nomad#13229 (comment) and #123 we can mount stuff from ${NOMAD_TASK_DIR}/file with relative path local/file but not for ${NOMAD_TASK_DIR}/secrets. I think it should be allowed to have a consistent behavior, and be of convenience to some container that is not easy to change their config seeking behavior.

For reference here's how docker driver doing this for volume bind and simple bind:
https://github.com/hashicorp/nomad/blob/2697e63ad67c254d0d8f1be02a477807fe40c50a/drivers/docker/driver.go#L678-L689
https://github.com/hashicorp/nomad/blob/2697e63ad67c254d0d8f1be02a477807fe40c50a/drivers/docker/driver.go#L1253-L1263

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

No branches or pull requests

1 participant