-o [OPT [OPT ...]], --container_option [OPT [OPT ...]]
parameters and flags to pass through to Docker or Singularity
This flag can take multiple arguments so cannot be
the final argument before the command argument (i.e.,
run or any other command that does not start with - or --)
Describe the bug
The option is listed in the README as
defined here https://github.com/FCP-INDI/cpac/blob/46af66edfaf8547a5eb79016d9cdd8c3e25ae13a/src/cpac/__main__.py#L74-L83
but I don't see that parameter handled anywhere![screenshot of GitHub search for "container_option"](https://user-images.githubusercontent.com/5974438/130513774-e4931fc7-659d-422d-8300-e51a3d3714bb.png)
Passing options through don't seem to work with any syntax I've attempted (see "To reproduce" below).
To reproduce
cpac -o --entrypoint=/bin/bash --platform docker run
cpac -o "--entrypoint=/bin/bash" --platform docker run
cpac -o="--entrypoint=/bin/bash" --platform docker run
cpac -o="--entrypoint=/bin/bash" --platform docker run bids_dir outputs_dir participant
Expected behavior
Any options passed to
-o
or--container_option
are passed through to Docker or Singularity.Acceptance criteria
cpac -o="--entrypoint=/bin/bash" --platform docker run
opens a BASH prompt in a C-PAC Docker containercpac version
0.3.2.post1
C-PAC version
v1.8.1, v1.8.1-dev
Container platform
Docker, Singularity