Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mount instructions for micromamba #895

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/contributors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,28 @@ container.
When invoking ``docker`` directly, the mount options must be specified
with the ``-v`` flag::

-v $HOME/projects/qsiprep/qsiprep:/usr/local/miniconda/lib/python3.10/site-packages/qsiprep:ro
-v $HOME/projects/nipype/nipype:/usr/local/miniconda/lib/python3.10/site-packages/nipype:ro
-v $HOME/projects/qsiprep/qsiprep:/opt/conda/envs/qsiprep/lib/python3.10/site-packages/qsiprep:ro
-v $HOME/projects/nipype/nipype:/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype:ro

For example, ::

$ docker run --rm -v $HOME/fullds005:/data:ro -v $HOME/dockerout:/out \
-v $HOME/projects/qsiprep/qsiprep:/usr/local/miniconda/lib/python3.10/site-packages/qsiprep:ro \
pennlinc/qsiprep:latest /data /out/out participant \
-v $HOME/projects/qsiprep/qsiprep:/opt/conda/envs/qsiprep/lib/python3.10/site-packages/qsiprep:ro \
pennbbl/qsiprep:latest /data /out/out participant \
-w /out/work/

In order to work directly in the container, use ``--entrypoint=bash``
arguments in a ``docker`` command::

$ docker run --rm -v $HOME/fullds005:/data:ro -v $HOME/dockerout:/out \
-v $HOME/projects/qsiprep/qsiprep:/usr/local/miniconda/lib/python3.10/site-packages/qsiprep:ro --entrypoint=bash \
pennlinc/qsiprep:latest
-v $HOME/projects/qsiprep/qsiprep:/opt/conda/envs/qsiprep/lib/python3.10/site-packages/qsiprep:ro --entrypoint=bash \
pennbbl/qsiprep:latest

Patching containers can be achieved in Apptainer analogous to ``docker``
using the ``--bind`` (``-B``) option: ::

$ apptainer run \
-B $HOME/projects/qsiprep/qsiprep:/usr/local/miniconda/lib/python3.10/site-packages/qsiprep \
$ singularity run \
-B $HOME/projects/qsiprep/qsiprep:/opt/conda/envs/qsiprep/lib/python3.10/site-packages/qsiprep \
qsiprep.img \
/scratch/dataset /scratch/out participant -w /out/work/

Expand Down
Loading