Support Docker v1.10+ hashes that include sha256: prefix.
authorThomas Mooney <tmooney@genome.wustl.edu>
Wed, 19 Oct 2016 22:59:52 +0000 (17:59 -0500)
committerThomas Mooney <tmooney@genome.wustl.edu>
Wed, 19 Oct 2016 22:59:52 +0000 (17:59 -0500)
sdk/cli/bin/crunch-job

index 39238b0fc649d400a380e397c8f0520fbc75b476..cdb5729a7bcdba93e8f0eb3af08c261a45bcc36e 100755 (executable)
@@ -2066,7 +2066,7 @@ sub find_docker_image {
       }
     }
   }
-  if (defined($filename) and ($filename =~ /^([0-9A-Fa-f]{64})\.tar$/)) {
+  if (defined($filename) and ($filename =~ /^((?:sha256:)?[0-9A-Fa-f]{64})\.tar$/)) {
     return ($streamname, $1);
   } else {
     return (undef, undef);