Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/tanguyduval/spm12
Browse files Browse the repository at this point in the history
  • Loading branch information
tanguyduval committed Oct 9, 2018
2 parents 84072d5 + 1de9ed4 commit 08de0d7
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,24 @@ docker run -it -v C:\Users\TONIC\code\spm12:/spm12 -v F:\STEMRI_NIFTI_RAW:/bids
````

#### GUI:
install Xserveur (Xming on windows)
###### Windows
1. install Xserveur (Xming on windows)
2.
````
export IP = ???
docker run -it -v C:\Users\code\spm12:/spm12 --entrypoint "/spm12/spm_standalone_linux/run_spm12.sh" -e DISPLAY=$IP:0 spm12 /opt/mcr/v92 eval cfg_ui
docker run -it -v C:\Users\TONIC\data\ds001378:bids -v C:\Users\TONIC\code\spm12:/spm12 --entrypoint "/spm12/spm_standalone_linux/run_spm12.sh" -e DISPLAY=$IP:0 spm12 /opt/mcr/v92 eval cfg_ui
````

###### MacOs
1. Install Xquartz
2. Determine your IP `IP=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')`
3. Add your IP to Xquartz `xhost + $IP`
4.
````
docker run -it -v /Users/TONIC/data/ds001378:bids /Users/TONIC/code/spm12 --entrypoint "/spm12/spm_standalone_linux/run_spm12.sh" -e DISPLAY=$IP:0 spm12 /opt/mcr/v92 eval cfg_ui
````


## Compile spm12 using a docker with matlab compiled in it
````
docker run -it -v C:\Users\code\spm12:/spm12 --entrypoint "/spm_make_standalone.sh" myrepo/matlab
Expand Down

0 comments on commit 08de0d7

Please sign in to comment.