3527: Find Docker images natively inside Collections.
authorBrett Smith <brett@curoverse.com>
Fri, 8 Aug 2014 14:46:51 +0000 (10:46 -0400)
committerBrett Smith <brett@curoverse.com>
Fri, 8 Aug 2014 17:51:10 +0000 (13:51 -0400)
commite932523a818a5d305ae541379b531a381f06edf4
treefc47592d45505745b5038917ca6821a9f854f44b
parentd36a4308d2e3dd564ddee92347466833c57ccfc9
3527: Find Docker images natively inside Collections.

We previously relied on the docker_image_hash link to treat a
Collection as a Docker image.  This was safer and simpler, but it
creates obstacles for project sharing.  When we have a Collection
locator that we want to treat as a Docker image, we now check that it
has a single file with a single 64-hexdigit tar file in it, and use
that as the hash if so.  This should still prevent clear mistakes
while removing some of the obstacles to sharing.
sdk/cli/bin/crunch-job
services/api/app/models/collection.rb
services/api/app/models/locator.rb
services/api/test/fixtures/collections.yml
services/api/test/fixtures/links.yml
services/api/test/unit/job_test.rb