-
Notifications
You must be signed in to change notification settings - Fork 3
/
build
executable file
·84 lines (71 loc) · 1.73 KB
/
build
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
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "no targets provided (django|rdkit|jupyter|all)"
exit 1
fi
BUILD_BASE=true
build_base() {
if [ $BUILD_BASE = false ]
then
return
fi
./env-prepare
docker-compose -f ./context/build/docker-compose.build.yml build base
BUILD_BASE=false
}
build_rdkit () {
build_base
docker-compose -f ./context/build/docker-compose.build.yml build rdkit
}
build_django () {
build_base
docker-compose -f ./context/build/docker-compose.build.yml build django
}
build_jupyter () {
build_base
docker-compose -f ./context/build/docker-compose.build.yml build jupyter
}
build_django=false
build_rdkit=false
build_jupyter=false
while :; do
case $1 in
django) build_django=true
;;
rdkit) build_rdkit=true
;;
jupyter) build_jupyter=true
;;
all) build_django=true;
build_rdkit=true;
build_jupyter=true;
;;
*) break
esac
shift
done
if [ $build_django = true ]
then
echo "Building Chembience Django Template App"
build_django
echo "---------------------------------------"
echo " Finished building Django Template App"
echo "---------------------------------------"
fi
if [ $build_rdkit = true ]
then
echo "Building Chembience RDKit Template App"
build_rdkit
echo "--------------------------------------"
echo " Finished building RDKit Template App"
echo "--------------------------------------"
fi
if [ $build_jupyter = true ]
then
echo "Building Chembience Jupyter Template App"
build_jupyter
echo "----------------------------------------"
echo " Finished building Jupyter Template App"
echo "----------------------------------------"
fi