-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding initial support for inspecting images on singularity platforms. (
#317) Current implementation is quite naive. It supports several cases: - Primary distribution format is SIF file (singularity binary image). In this case, the MLCube hash is sha256 of this file. - Primary distribution format is a source tree with singularity definition file. In this case, the MLCube hash is sha256 of the image file built from this definition file. - Primary distribution format is docker image hosted on docker hub. In this case, the MLCube hash is the image ID of the original docker image (extracted from image manifest). It is assumed all images are hosted on docker hub. It makes two API calls - one to retrieve authorization token for pulling from the image repository, and another one to pull image manifest. This implementation is not robust in current implementation. The subsequent call to `configure` may pull a new version of the image should these two calls (identifying hash and configuring MLCube) happen simoultaneously with MLCube owner uploading a newer version. To avoid getting logging messages, set log level to ERROR: ```shell mlcube --log-level=error inspect --mlcube=. --platform=singularity ```
- Loading branch information
1 parent
157e6f7
commit 3b3fffc
Showing
2 changed files
with
250 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters