Project

General

Profile

Actions

Feature #8465

closed

[Crunch2] Support stdin/stderr redirection

Added by Peter Amstutz about 8 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
-
Target version:
Story points:
1.0
Release:
Release relationship:
Auto

Description

For stdin redirection:

  1. After arv-mount is started
  2. Look for "stdin" in mounts
  3. Open file with stdin content (must support kind: collection, ideally should support kind: json as well)
  4. Attach stdin to docker container, I think this is ContainerAttachOptions{Stdin: true}
  5. Copy input file to docker container stdin stream, I think this is a goroutine with io.Copy(infile, response.Conn)

For stderr redirection:

Copy/refactor code for existing stdout redirection.


Subtasks 4 (0 open4 closed)

Task #11385: Review branch 8465-stdin-redirectionResolvedPeter Amstutz04/07/2017Actions
Task #11433: Review branch 8465-stderr-redirectionResolvedPeter Amstutz04/07/2017Actions
Task #11448: Review 8465-cwl-containers-stdin-stderrResolvedRadhika Chippada04/07/2017Actions
Task #11446: Update arvados-cwl-runnerResolvedPeter Amstutz04/07/2017Actions

Related issues

Blocked by Arvados - Idea #9132: [Crunch2] crunch-run uses official docker client libraryResolvedPeter Amstutz03/08/2017Actions
Actions

Also available in: Atom PDF