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

Correct usage of build_args for singularity runner. #357

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sergey-serebryakov
Copy link
Contributor

Existing implementation in some corner cases overrides singularity runner parameters when it should not be doing so. One corner case is the following:

Using docker configuration to build the singularity image file. In this case, the build_args parameter is automatically set to --fakeroot whenever it is detected the singularity runtime supports this. This is different from case when there is singularity section in MLCube configuration file in which case the build_args is correctly read from system settings file (default location is ${HOME}/mlcube.yaml) or from MLCube configuration file.

This fix changes this behavior. The singularity runner will log the warning message whenever it does not override the build_args as it would do previously.

Existing implementation in some corner cases overrides singularity runner parameters when it should not be doing so. One corner case is the following:

Using docker configuration to build the singularity image file. In this case, the `build_args` parameter is automatically set to `--fakeroot`
whenever it is detected the singularity runtime supports this. This is differet from case when there is singularity section in MLCube configuration
file in which case the `build_args` is correctly read from system settings file (default location is `${HOME}/mlcube.yaml`) or from MLCubec configuration
file.

This fix changes this behavior. The singularity runner will log the warning message whenever it does not override the build_args as it would do previously.
@sergey-serebryakov sergey-serebryakov requested a review from a team as a code owner February 15, 2024 07:04
Copy link
Contributor

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@sergey-serebryakov sergey-serebryakov self-assigned this Feb 15, 2024
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