Skip to content

Commit

Permalink
Add a more extensive fixtures script (#3348)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsmkn authored May 16, 2024
1 parent 206571f commit 557283b
Show file tree
Hide file tree
Showing 2 changed files with 773 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/grandchallenge/components/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,10 @@ def _get_image_config_file(
# Docker >=25 container image
image_sha256 = image_manifest["Config"].split("/")[-1]

if image_sha256.startswith("sha256:"):
# Images created by crane have a sha256 prefix
image_sha256 = image_sha256[7:]

if len(image_sha256) != 64:
raise ValidationError(
"The container image file does not have a valid sha256 hash."
Expand Down
Loading

0 comments on commit 557283b

Please sign in to comment.