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 parameter to allow the setting of running user for container #120

Merged
merged 2 commits into from
Jan 13, 2022

Conversation

n-marton
Copy link
Contributor

it comes handy form time to time to override the running user of a container

@shishir-a412ed
Copy link
Contributor

@n-marton
Nomad already handles this at the orchestration layer. Have you tried https://www.nomadproject.io/docs/job-specification/task#user?

@github-actions
Copy link

github-actions bot commented Jan 11, 2022

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@n-marton
Copy link
Contributor Author

n-marton commented Jan 12, 2022

By it self that "user" param is not inherited into the containerd params, but I have adjusted my change to make it so. So the running user of the container now comes from the task's user config.

edit: also, yes I agree it should be this way instead of introducing a new config param.

@shishir-a412ed
Copy link
Contributor

@n-marton Can you read and sign the CLA?

@n-marton
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Contributor

@shishir-a412ed shishir-a412ed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@shishir-a412ed shishir-a412ed merged commit c08ed98 into Roblox:master Jan 13, 2022
@n-marton n-marton deleted the feature/set-user branch January 13, 2022 23:45
jonathanrcross added a commit to AtomicConductor/nomad-driver-containerd that referenced this pull request Jan 14, 2022
* 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]>
Co-authored-by: n-marton <[email protected]>
Co-authored-by: Shishir <[email protected]>
Co-authored-by: Jonathan Cross <>
jonathanrcross added a commit to AtomicConductor/nomad-driver-containerd that referenced this pull request Jan 25, 2022
* 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 <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants