-
Notifications
You must be signed in to change notification settings - Fork 53
/
initialize.sh
executable file
·162 lines (132 loc) · 6.29 KB
/
initialize.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
#!/bin/bash
# Building docker for the different algorithms
echo "This may take a while..."
BASEDIR=$(pwd)
# You may remove the -q flag if you want to see the docker build status
cd $BASEDIR/Algorithms/ARBORETO
docker build -q -t arboreto:base .
if ([ $? = 0 ] && [ "$(docker images -q arboreto:base 2> /dev/null)" != "" ]); then
echo "Docker container for ARBORETO is built and tagged as arboreto:base"
elif [ "$(docker images -q arboreto:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at arboreto:base"
else
echo "Oops! Unable to build Docker container for ARBORETO"
fi
cd $BASEDIR/Algorithms/GRISLI/
docker build -q -t grisli:base .
if ([ $? = 0 ] && [ "$(docker images -q grisli:base 2> /dev/null)" != "" ]); then
echo "Docker container for GRISLI is built and tagged as grisli:base"
elif [ "$(docker images -q grisli:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at grisli:base"
else
echo "Oops! Unable to build Docker container for GRISLI"
fi
cd $BASEDIR/Algorithms/GRNVBEM/
docker build -q -t grnvbem:base .
if ([ $? = 0 ] && [[ "$(docker images -q grnvbem:base 2> /dev/null)" != "" ]]); then
echo "Docker container for GRNVBEM is built and tagged as grnvbem:base"
elif [ "$(docker images -q grnvbem:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at grnvbem:base"
else
echo "Oops! Unable to build Docker container for GRNVBEM"
fi
cd $BASEDIR/Algorithms/JUMP3/
docker build -q -t jump3:base .
if ([ $? = 0 ] && [[ "$(docker images -q jump3:base 2> /dev/null)" != "" ]]); then
echo "Docker container for JUMP3 is built and tagged as jump3:base"
elif [ "$(docker images -q jump3:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at jump3:base"
else
echo "Oops! Unable to build Docker container for JUMP3"
fi
cd $BASEDIR/Algorithms/LEAP/
docker build -q -t leap:base .
if ([ $? = 0 ] && [[ "$(docker images -q leap:base 2> /dev/null)" != "" ]]); then
echo "Docker container for LEAP is built and tagged as leap:base"
elif [ "$(docker images -q leap:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at leap:base"
else
echo "Oops! Unable to build Docker container for LEAP"
fi
cd $BASEDIR/Algorithms/PIDC/
docker build -q -t pidc:base .
if ([ $? = 0 ] && [[ "$(docker images -q pidc:base 2> /dev/null)" != "" ]]); then
echo "Docker container for PIDC is built and tagged as pidc:base"
elif [ "$(docker images -q pidc:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at pidc:base"
else
echo "Oops! Unable to build Docker container for PIDC"
fi
cd $BASEDIR/Algorithms/PNI/
docker build -q -t pni:base .
if ([ $? = 0 ] && [[ "$(docker images -q pni:base 2> /dev/null)" != "" ]]); then
echo "Docker container for PNI is built and tagged as pni:base"
elif [ "$(docker images -q pni:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at pni:base"
else
echo "Oops! Unable to build Docker container for PNI"
fi
cd $BASEDIR/Algorithms/PPCOR/
docker build -q -t ppcor:base .
if ([ $? = 0 ] && [[ "$(docker images -q ppcor:base 2> /dev/null)" != "" ]]); then
echo "Docker container for PPCOR is built and tagged as ppcor:base"
elif [ "$(docker images -q ppcor:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at ppcor:base"
else
echo "Oops! Unable to build Docker container for PPCOR"
fi
cd $BASEDIR/Algorithms/SINGE/
docker build -q -t singe:base .
if ([ $? = 0 ] && [[ "$(docker images -q singe:base 2> /dev/null)" != "" ]]); then
echo "Docker container for SINGE is built and tagged as singe:base"
elif [ "$(docker images -q singe:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at singe:base"
else
echo "Oops! Unable to build Docker container for SINGE"
fi
cd $BASEDIR/Algorithms/SCNS/
docker build -q -t scns:base .
if ([ $? = 0 ] && [[ "$(docker images -q scns:base 2> /dev/null)" != "" ]]); then
echo "Docker container for SCNS is built and tagged as scns:base"
elif [ "$(docker images -q scns:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at scns:base"
else
echo "Oops! Unable to build Docker container for SCNS"
fi
cd $BASEDIR/Algorithms/SCODE/
docker build -q -t scode:base .
if ([ $? = 0 ] && [[ "$(docker images -q scode:base 2> /dev/null)" != "" ]]); then
echo "Docker container for SCODE is built and tagged as scode:base"
elif [ "$(docker images -q scode:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at scode:base"
else
echo "Oops! Unable to build Docker container for SCODE"
fi
cd $BASEDIR/Algorithms/SCRIBE/
docker build -q -t scribe:base .
if ([ $? = 0 ] && [[ "$(docker images -q scribe:base 2> /dev/null)" != "" ]]); then
echo "Docker container for SCRIBE is built and tagged as scribe:base"
elif [ "$(docker images -q scribe:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at scribe:base"
else
echo "Oops! Unable to build Docker container for SCRIBE"
fi
cd $BASEDIR/Algorithms/SINCERITIES/
docker build -q -t sincerities:base .
if ([ $? = 0 ] && [ "$(docker images -q sincerities:base 2> /dev/null)" != "" ]); then
echo "Docker container for SINCERITIES is built and tagged as sincerities:base"
elif [ "$(docker images -q sincerities:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at sincerities:base"
else
echo "Oops! Unable to build Docker container for SINCERITIES"
fi
cd $BASEDIR/Algorithms/SCSGL/
docker build -q -t scsgl:base .
if ([ $? = 0 ] && [[ "$(docker images -q scsgl:base 2> /dev/null)" != "" ]]); then
echo "Docker container for SCSGL is built and tagged as scsgl:base"
elif [ "$(docker images -q scsgl:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at scsgl:base"
else
echo "Oops! Unable to build Docker container for SCSGL"
fi
cd $BASEDIR