Skip to content

Commit 11b3e44

Browse files
authored
Merge pull request #1340 from jdkent/singularity_docs
[ENH] add --bind method to singularity patch documentation
2 parents c05b7bb + fabc7c9 commit 11b3e44

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)