forked from Murali-group/Beeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
initialize.sh
181 lines (140 loc) · 5.52 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
#!/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 [[ "$(docker images -q arboreto:base 2> /dev/null)" != "" ]]; then
echo "Docker container for ARBORETO is built and tagged as arboreto:base"
else
echo "Oops! Unable to build Docker container for ARBORETO"
fi
cd $BASEDIR/Algorithms/GRISLI/
docker build -q -t grisli:base .
if [[ "$(docker images -q grisli:base 2> /dev/null)" != "" ]]; then
echo "Docker container for GRISLI is built and tagged as grisli:base"
else
echo "Oops! Unable to build Docker container for GRISLI"
fi
cd $BASEDIR/Algorithms/GRNVBEM/
docker build -q -t grnvbem:base .
if ([[ "$(docker images -q grnvbem:base 2> /dev/null)" != "" ]]); then
echo "Docker container for GRNVBEM is built and tagged as grnvbem:base"
else
echo "Oops! Unable to build Docker container for GRNVBEM"
fi
cd $BASEDIR/Algorithms/JUMP3/
docker build -q -t jump3:base .
if ([[ "$(docker images -q jump3:base 2> /dev/null)" != "" ]]); then
echo "Docker container for JUMP3 is built and tagged as jump3:base"
else
echo "Oops! Unable to build Docker container for JUMP3"
fi
cd $BASEDIR/Algorithms/LEAP/
docker build -q -t leap:base .
if ([[ "$(docker images -q leap:base 2> /dev/null)" != "" ]]); then
echo "Docker container for LEAP is built and tagged as leap:base"
else
echo "Oops! Unable to build Docker container for LEAP"
fi
cd $BASEDIR/Algorithms/PIDC/
docker build -q -t pidc:base .
if ([[ "$(docker images -q pidc:base 2> /dev/null)" != "" ]]); then
echo "Docker container for PIDC is built and tagged as pidc:base"
else
echo "Oops! Unable to build Docker container for PIDC"
fi
cd $BASEDIR/Algorithms/PNI/
docker build -q -t pni:base .
if ([[ "$(docker images -q pni:base 2> /dev/null)" != "" ]]); then
echo "Docker container for PNI is built and tagged as pni:base"
else
echo "Oops! Unable to build Docker container for PNI"
fi
cd $BASEDIR/Algorithms/PPCOR/
docker build -q -t ppcor:base .
if ([[ "$(docker images -q ppcor:base 2> /dev/null)" != "" ]]); then
echo "Docker container for PPCOR is built and tagged as ppcor:base"
else
echo "Oops! Unable to build Docker container for PPCOR"
fi
cd $BASEDIR/Algorithms/SINGE/
docker build -q -t singe:base .
if ([[ "$(docker images -q singe:base 2> /dev/null)" != "" ]]); then
echo "Docker container for SINGE is built and tagged as singe:base"
else
echo "Oops! Unable to build Docker container for SINGE"
fi
cd $BASEDIR/Algorithms/SCNS/
docker build -q -t scns:base .
if ([[ "$(docker images -q scns:base 2> /dev/null)" != "" ]]); then
echo "Docker container for SCNS is built and tagged as scns:base"
else
echo "Oops! Unable to build Docker container for SCNS"
fi
cd $BASEDIR/Algorithms/SCODE/
docker build -q -t scode:base .
if ([[ "$(docker images -q scode:base 2> /dev/null)" != "" ]]); then
echo "Docker container for SCODE is built and tagged as scode:base"
else
echo "Oops! Unable to build Docker container for SCODE"
fi
cd $BASEDIR/Algorithms/SCRIBE/
docker build -q -t scribe:base .
if [[ "$(docker images -q scribe:base 2> /dev/null)" != "" ]]; then
echo "Docker container for SCRIBE is built and tagged as scribe:base"
else
echo "Oops! Unable to build Docker container for SCRIBE"
fi
cd $BASEDIR/Algorithms/SINCERITIES/
docker build -q -t sincerities:base .
if ([[ "$(docker images -q sincerities:base 2> /dev/null)" != "" ]]); then
echo "Docker container for SINCERITIES is built and tagged as sincerities:base"
else
echo "Oops! Unable to build Docker container for SINCERITIES"
fi
cd $BASEDIR/Algorithms/SCSGL/
docker build -q -t scsgl:base .
if ([[ "$(docker images -q scsgl:base 2> /dev/null)" != "" ]]); then
echo "Docker container for SCSGL is built and tagged as scsgl:base"
else
echo "Oops! Unable to build Docker container for SCSGL"
fi
cd $BASEDIR/Algorithms/SCTENIFOLDNET/
docker build -q -t sctenifoldnet:base .
if ([[ "$(docker images -q sctenifoldnet:base 2> /dev/null)" != "" ]]); then
echo "Docker container for SCTENIFOLDNET is built and tagged as sctenifoldnet:base"
else
echo "Oops! Unable to build Docker container for SCTENIFOLDNET"
fi
cd $BASEDIR/Algorithms/SCORPION/
docker build -q -t scorpion:base .
if ([[ "$(docker images -q scorpion:base 2> /dev/null)" != "" ]]); then
echo "Docker container for SCORPION is built and tagged as scorpion:base"
else
echo "Oops! Unable to build Docker container for SCORPION"
fi
cd $BASEDIR/Algorithms/MICA/
docker build -q -t mica:base .
if ([[ "$(docker images -q mica:base 2> /dev/null)" != "" ]]); then
echo "Docker container for MICA is built and tagged as mica:base"
else
echo "Oops! Unable to build Docker container for MICA"
fi
cd $BASEDIR/Algorithms/TENET/
docker build -q -t tenet:base .
if ([[ "$(docker images -q tenet:base 2> /dev/null)" != "" ]]); then
echo "Docker container for TENET is built and tagged as tenet:base"
else
echo "Oops! Unable to build Docker container for TENET"
fi
cd $BASEDIR/Algorithms/NGSEM/
docker build --no-cache -t ngsem:base .
if ([ $? = 0 ] && [[ "$(docker images -q ngsem:base 2> /dev/null)" != "" ]]); then
echo "Docker container for NGSEM is built and tagged as ngsem:base"
elif [ "$(docker images -q ngsem:base 2> /dev/null)" != "" ]; then
echo "Docker container failed to build, but an existing image exists at ngsem:base"
echo "Oops! Unable to build Docker container for ngsem"
fi
cd $BASEDIR