Project

General

Profile

Feature #8311

Updated by Tom Clegg over 6 years ago

Crunch-run capability to mount the contents of a git repository checkout for a given commit, as documented http://doc.arvados.org/api/methods/containers.html 

 Note: Spec spec for git mounts (see [[Containers API]]) includes some features we don't need in an initial implementation. For now, 
 * Implement "kind", "uuid", and "commit" fields. 
 * Fail if "revisions", "git-url", or "repository_name" is provided. 
 * Fail if a "path" other than "/" is provided. 
 * Update "documentation":http://doc.arvados.org/api/methods/containers.html overcomplicated.    Simplify to minimum version (probably just uuid and commit fields) and update documentation to reflect what is actually actualy implemented. 

 "commit" in a container Container request can be should allow symbolic branch/tag, but must resolve to a branch, tag, or sha1. "commit" in a git commit hash for container is always a sha1 (it is resolved in when creating the container, like mounts and container image). record mounts. 

 To minimize dependencies, use "pure consider using pure Go git library":https://github.com/src-d/go-git library instead of using "git" subprocess. subprocess: 

 https://github.com/src-d/go-git 

Back