-
Notifications
You must be signed in to change notification settings - Fork 35
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
How to use template stanza #116
Comments
@mabunixda |
The file |
@mabunixda Since Nomad is dropping the file in it's sandbox environment and containerd is looking in it's own chroot'ed environment (where the file is not present), the mount fails. e.g. containerd is looking here (When I tested this in my local vagrant VM)
What I can do is add a patch to Currently it only works with absolute paths. If you specify an absolute path, containerd-driver will look for that path on the host. You can then use a job like this to mount your file:
The patch will be something like this:
From the container:
Let me know if this works for you, and I ll get the patch merged. |
That would be awesome! |
Hey There's a easier way to use nomad's task folder env var inside the mount config?
|
@mabunixda Sorry I was on vacation last 3 weeks, and didn't get a chance to check this out. Did you get a chance to try out @lu-zen suggestion? |
I tried it now, but this does not work. This results in |
@mabunixda Thanks for confirming. I ll open a PR with the fix I suggested |
Signed-off-by: Shishir Mahajan <[email protected]>
* Fix issue #116 - allow relative paths in mounts. * Add test. Signed-off-by: Shishir Mahajan <[email protected]>
* add parameter to allow the setting of running user for container (Roblox#120) * add parameter to allow the setting of running user for container * use task level user param as source param * Security fixes: upgrade containerd + nomad. (Roblox#122) Signed-off-by: Shishir Mahajan <[email protected]> * Fix issue Roblox#116 - allow relative paths in mounts. (Roblox#123) * Fix issue Roblox#116 - allow relative paths in mounts. * Add test. Signed-off-by: Shishir Mahajan <[email protected]> * fix entrypoint override (Roblox#124) In case of entrypoint override, image config needs to be passed. * rename test file numbers Co-authored-by: n-marton <[email protected]> Co-authored-by: Shishir <[email protected]> Co-authored-by: Jonathan Cross <>
I reconfigured tasks from docker to containerd driver without any big problems - except one: How to configure the mount options when using a template stanza for configuration, e.g.:
The text was updated successfully, but these errors were encountered: