Last active
April 21, 2022 14:53
-
-
Save JohnAtl/63cce67dd11e2b1492588138c418f8e8 to your computer and use it in GitHub Desktop.
Build an nipype docker image based on neurodocker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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