-
Notifications
You must be signed in to change notification settings - Fork 17
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
Cyt 814 docker scout #193
Cyt 814 docker scout #193
Conversation
for more information, see https://pre-commit.ci
…o CYT-814-docker-scout
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename docker_file.py
to docker_image.py
to clarify that it is getting info from a docker image rather than a Dockerfile -- would be neat to get the original Dockerfile for an image, that would be like getting access to source code.
for more information, see https://pre-commit.ci
|
||
def is_docker_scout_installed(): | ||
# Check that Docker Scout can be run | ||
result = subprocess.run(["docker", "scout", "--help"], capture_output=True, check=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the CI tests, it looks like subprocess.run
can sometimes throw a FileNotFoundError
that should be caught (are there any other error types that can be thrown?) if the docker
command isn't installed on a system.
Co-authored-by: Ryan Mast <[email protected]>
Summary
If merged this pull request will add support for running Docker Scout on Docker .tar and .tar.gz files