Add a script that allows you to run the image as a container both on Windows (Docker) and Linux (Singularity). Paths should be replaced with variables that the user can set.
csp_image_run.sh:
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
singularity run -B /zi-flstorage/group_csp/analyses/johannes.wiesner/projects/hcp_project/code/:/home/neuro/workdir \
-B /zi-flstorage/group_csp/open_access_datasets/humanconnectome/raw_data/:/data \
-B /zi-flstorage/group_csp/open_access_datasets/humanconnectome/derivatives/:/output \
/csp-tools/singularity_images/csp.sif jupyter-lab --notebook-dir=/home/neuro/workdir
elif [[ "$OSTYPE" == "msys" ]]; then
winpty docker run -it --rm -v /C:/Users/Johannes.Wiesner/Documents/projects/hcp_project/code/:/home/neuro/workdir \
-v /C:/Users/Johannes.Wiesner/Documents/projects/hcp_project/data/humanconnectome/raw_data/:/data \
-v /C:/Users/Johannes.Wiesner/Documents/projects/hcp_project/data/humanconnectome/derivatives/:/output \
-p 8888:8888 johanneswiesner/csp:1.0.0 jupyter lab
fi
Add a script that allows you to run the image as a container both on Windows (Docker) and Linux (Singularity). Paths should be replaced with variables that the user can set.
csp_image_run.sh
: