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 config override by envvar #763

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

elezar
Copy link
Member

@elezar elezar commented Oct 30, 2024

This change allows the config file used by the nvidia-container-runtime and nvidia-container-runtime-hook to be explicitly set using an NVCT_CONFIG_FILE_PATH environment variable. This removes the need to inject a -config option when installing the nvidia-contianer-runtime-hook wrapper from the toolkit container and allows the two components to treat this consistently.

This would allow the changes of #700 to be integrated more easily.

This change adds support for explicitly specifying the path
to the config file through an environment variable.
The NVCT_CONFIG_FILE_PATH variable is used for both the nvidia-container-runtime
and nvidia-container-runtime-hook.

Signed-off-by: Evan Lezar <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant