Skip to content

Commit fabc7c9

Browse files
committed
[skip tests][skip ds210][skip ds054][skip ds005] add --bind method to singularity patch documentation
1 parent c05b7bb commit fabc7c9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/contributors.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,15 @@ arguments in a ``docker`` command::
6868
-v $HOME/projects/fmriprep/fmriprep:/usr/local/miniconda/lib/python3.6/site-packages/fmriprep:ro --entrypoint=bash \
6969
poldracklab/fmriprep:latest
7070

71-
Patching containers can be achieved in Singularity by using the PYTHONPATH variable: ::
71+
Patching containers can be achieved in Singularity analogous to ``docker``
72+
using the ``--bind`` (``-B``) option: ::
73+
74+
$ singularity run \
75+
-B $HOME/projects/fmriprep/fmriprep:/usr/local/miniconda/lib/python3.6/site-packages/fmriprep \
76+
fmriprep.img \
77+
/scratch/dataset /scratch/out participant -w /out/work/
78+
79+
Or you can patch Singularity containers using the PYTHONPATH variable: ::
7280

7381
$ PYTHONPATH="$HOME/projects/fmriprep" singularity run fmriprep.img \
7482
/scratch/dataset /scratch/out participant -w /out/work/

0 commit comments

Comments
 (0)