-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·68 lines (60 loc) · 1.77 KB
/
build.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
#!/bin/bash
#taken from the example project for ease of building
target=$1
if [ ! -d "packages/compute" ]; then
echo "Please enter the root of the project, then re-run the script!"
exit 1
fi
if [[ $target == "compute" ]]; then
echo "---- Start Build The Compute Package ----"
cd packages/compute
brane build ./container.yml
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Build compute package failed, please check the error message!"
exit 1
fi
elif [[ $target == "visualization" ]]; then
echo "---- Start Build The Visualization Package ----"
cd packages/visualization
brane build ./container.yml
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Build visualization package failed, please check the error message!"
exit 1
fi
elif [[ $target == "panda_branes" ]]; then
echo "---- Start Build The PandaBranes Package ----"
cd packages/panda_branes
brane build ./container.yml
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Build PandaBranes package failed, please check the error message!"
exit 1
fi
else
echo "---- Start Build All The Package ----"
cd packages/compute
brane build ./container.yml
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Build compute package failed, please check the error message!"
exit 1
fi
cd ../visualization
brane build ./container.yml
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Build visualization package failed, please check the error message!"
exit 1
fi
cd ../panda_branes
brane build ./container.yml
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Build PandaBranes package failed, please check the error message!"
exit 1
fi
fi
echo "---- End Build ----"
exit 0