Project

General

Profile

Actions

Bug #7695

open

[API] Accept collection UUID as a job's docker_image constraint

Added by Brett Smith over 8 years ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
API
Target version:
Story points:
0.5
Release:
Release relationship:
Auto

Description

This behavior should work identically to specifying a collection's portable data hash: if the user can read the collection, and it contains a single file that looks like a Docker image, record the Docker image's content address as the job's docker_image_locator.

Update the Collection.find_all_for_docker_image method to recognize and accept collection UUIDs, just like it recognizes collection PDHs. Apply the same conditions to accepting those collections: look at the manifest text, and confirm it contains a single .tar file that looks like a Docker image.

Update the docker_image documentation in /doc/user/topic/arv-docker.html and /doc/api/schema/Job.html to note that collection UUIDs are accepted.

Actions

Also available in: Atom PDF