I agree that this is a very nice proposition.
I think I prefer option #2, as it's easier to get started with.
Instead of docker cp you can use "docker cat" which should generally
work (except where there is a very minimal installation or a
not-so-nice-behaving ENTRYPOINT)
With this option we can also have a default file-path, e.g.
/cwl/tool-description.json - which is easy to add even when
not using a Dockerfile.
--
You received this message because you are subscribed to the Google Groups "common-workflow-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to common-workflow-la...@googlegroups.com.
To post to this group, send email to common-workf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/common-workflow-language/CAD%3DWrcJh6cctgxXfTucMMkBw5wLM%3DLcnWmmY30YkNZ1q_TEPoA%40mail.gmail.com.
Storing a directory path would work, although one benefit of referencing exact files is that one could start a container with "sleep 3600" and then use "docker cp" to pull files out (Stian's "docker run cat" trick works too) without additional fiddling with "ls".
The url thing is annoying because "foo", "foo/bar", "foo/bar:baz", "docker.io/foo/bar:baz" and the hexadecimal image id are all valid ways to refer to an image, because there can be 0, 1, or 2 slashes and the colon is optional there isn't really a way to parse it reliably except by either only accepting the least ambiguous form (e.g. dockertool://docker.io/foo/bar:baz/usr/share/tool.cwl which is still a little awkward) or separating the path out into the query field.
So yes, I already over thought it and that's the conclusion I came to.
- Peter
So yes, I already over thought it and that's the conclusion I came to.