reanahub / reana-job-controller

REANA Job Controller
http://reana-job-controller.readthedocs.io/
MIT License
1 stars 37 forks source link

api: working directory parameter #47

Open anton-khodak opened 6 years ago

anton-khodak commented 6 years ago

job-controller should support working_dir parameter in the API that tells the worker pod in which directory to execute commands. Something like -w option in docker run: https://serverfault.com/a/650368/308015

diegodelemos commented 6 years ago

@anton-khodak is this needed for full conformance test suite to pass?

anton-khodak commented 6 years ago

@diegodelemos currently, the way to do it is to inlcude cd working_directory to the command. https://github.com/reanahub/reana-workflow-engine-cwl/blob/901efce7ace5112269eb57f508278e716beb0b7e/reana_workflow_engine_cwl/cwl_reana.py#L178. And looks like it is created on the fly for some cases (not sure whether deleting mkdir instruction will keep all cases working).

So -w option would be still desirable, but it is not a blocker to full conformance.