-
Notifications
You must be signed in to change notification settings - Fork 15
/
testdocker.sh
executable file
·73 lines (65 loc) · 2.24 KB
/
testdocker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
MYIPADDRESS=`ifconfig en0 | grep 'inet ' | awk '{print $2}'`
VERSION=latest
# allow network connections in Xquartz Security settings
xhost +
docker pull fredericklab/rapidtide:${VERSION}
docker run \
--rm \
--ipc host \
--mount type=bind,source=/Users/frederic/code/rapidtide/rapidtide/data/examples,destination=/data \
-it \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-u rapidtide fredericklab/rapidtide:${VERSION} \
/cloud/mount-and-run rapidtide \
/data/src/sub-RAPIDTIDETEST.nii.gz \
/data/dst/sub-RAPIDTIDETEST \
--passes 3 \
--nprocs 4 \
--noglm
#docker run \
# --rm \
# --ipc host \
# --mount type=bind,source=/Users/frederic/code/rapidtide/rapidtide/data/examples,destination=/data \
# -it \
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# -u rapidtide fredericklab/rapidtide:${VERSION} \
# rapidtide \
# /data/src/sub-RAPIDTIDETEST.nii.gz \
# /data/dst/sub-RAPIDTIDETEST_disabledockermemfix \
# --disabledockermemfix \
# --passes 3 \
# --nprocs 4 \
# --noglm
#docker run \
# --rm \
# --ipc host \
# --mount type=bind,source=/Users/frederic/code/rapidtide/rapidtide/data/examples,destination=/data \
# -it \
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# -u rapidtide fredericklab/rapidtide:${VERSION} \
# happy \
# /data/src/sub-HAPPYTEST.nii.gz \
# /data/src/sub-HAPPYTEST.json \
# /data/dst/sub-HAPPYTEST \
# --model model_revised \
# --mklthreads -1
#docker run \
# --rm \
# --ipc host \
# --mount type=bind,source=/Users/frederic/code/rapidtide/rapidtide/data/examples,destination=/data \
# -it \
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# -u rapidtide fredericklab/rapidtide:${VERSION} \
# gmscalc \
# /data/src/sub-RAPIDTIDETEST.nii.gz \
# /data/dst/sub-RAPIDTIDETEST_GMS \
# --dmask /data/src/sub-RAPIDTIDETEST_brainmask.nii.gz
docker run \
--network host\
--mount type=bind,source=/Users/frederic,destination=/data \
-it \
-e DISPLAY=${MYIPADDRESS}:0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-u rapidtide fredericklab/rapidtide:${VERSION} \
tidepool --dataset /data/code/rapidtide/rapidtide/data/examples/dst/sub-RAPIDTIDETEST_