Skip to content

Instantly share code, notes, and snippets.

@JohnAtl
Last active April 21, 2022 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnAtl/63cce67dd11e2b1492588138c418f8e8 to your computer and use it in GitHub Desktop.
Save JohnAtl/63cce67dd11e2b1492588138c418f8e8 to your computer and use it in GitHub Desktop.
Build an nipype docker image based on neurodocker
#!/bin/bash
# Note that this repo includes a Singularity file too
git clone https://github.com/miykael/nipype_tutorial
cd nipype_tutorial
chmod +x generate.sh
./generate.sh
docker build --tag jjnipype .
./run_nipype_tutorial_docker
#!/bin/bash
git clone https://github.com/ReproNim/neurodocker
cd neurodocker
python3 -m pip install --no-cache-dir --editable '.[all]'
# In the event of importlib_metadata errors:
# python3 -m pip uninstall importlib_metadata
# python3 -m pip install importlib_metadata
# then try installing again
#!/bin/bash
# Paths are specific to my system, but should be a
# good example.
source /usr/local/Caskroom/miniconda/base/etc/profile.d/conda.sh
conda activate nipype
docker run -it --rm \
-v /Volumes/Data/Research/fmri/fmri_rs/code/:/home/neuro/nipype_tutorial \
-v /Volumes/Data/Research/fmri/fmri_rs/:/data \
-v /Volumes/Data/Research/fmri/fmri_rs/derivatives/output/:/output \
-p 8888:8888 \
jjnipype \
jupyter notebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment