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

Inspect command for docker runner. #316

Merged

Conversation

sergey-serebryakov
Copy link
Contributor

To inspect MLCubes with docker platforms, invoke the following command (assuming this runs inside the root directory of an MLCube-based project): mlcube inspect --mlcube=. --platform=docker.

MLCube docker runner will run docker inspect IMAGE_NAME first and will capture its json output (output should a json-parseable string). The output is expected to be a list with one element containing dictionary.

The return dictionary will contain a single entry with hash key. The value will be the Id value in docker inspect output - image ID (sha256 of the image config.json file).

To inspect MLCubes with docker platforms, invoke the following command (assuming this runs inside the root directory of an MLCube-based project): `mlcube inspect --mlcube=. --platform=docker`.

MLCube docker runner will run `docker inspect IMAGE_NAME` first and will capture its json output (output should a json-parseable string). The output is expected to be a list with one element containing dictionary.

The return dictionary will contain a single entry with `hash` key. The value will be the `Id` value in docker inspect output - image ID (sha256 of the image config.json file).
@sergey-serebryakov sergey-serebryakov requested a review from a team as a code owner July 21, 2023 23:54
@github-actions
Copy link
Contributor

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

@sergey-serebryakov sergey-serebryakov merged commit 157e6f7 into mlcommons:master Jul 21, 2023
2 checks passed
@sergey-serebryakov sergey-serebryakov deleted the feature/inspect-docker branch July 21, 2023 23:56
@github-actions github-actions bot locked and limited conversation to collaborators Jul 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant