-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdockerbuilder.sh
executable file
·61 lines (51 loc) · 1.43 KB
/
dockerbuilder.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
#!/bin/sh
# This is the same file as setup.sh, but with sudo removed and git added to work in the docker build
mkdir vendor
cd vendor
git clone --recursive https://github.com/GitMeep/aegis.cpp.git
git clone https://github.com/pocoproject/poco.git
# aegis
cd aegis.cpp
./install-deps.sh
rm -rf build
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=g++-9 -DCMAKE_CXX_STANDARD=17 ..
make -j4
make install
cd ../..
# poco
cd poco
rm -rf cmake-build
mkdir cmake-build
cd cmake-build
cmake ..
cmake --build . --target install -j4
cd ../..
# libmongoc
rm -rf mongo
mkdir mongo
cd mongo
rm -rf mongo-c-driver-1.17.2
wget https://github.com/mongodb/mongo-c-driver/releases/download/1.17.2/mongo-c-driver-1.17.2.tar.gz
tar -xzf mongo-c-driver-1.17.2.tar.gz
rm mongo-c-driver-1.17.2.tar.gz
cd mongo-c-driver-1.17.2
rm -rf cmake-build
mkdir cmake-build
cd cmake-build
cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF -DENABLE_TESTS=OFF -DENABLE_EXAMPLES=OFF ..
make -j4
cmake --build . --target install
# mongocxx
cd ../..
rm -rf mongo-cxx-driver-r3.6.1
curl -OL https://github.com/mongodb/mongo-cxx-driver/releases/download/r3.6.1/mongo-cxx-driver-r3.6.1.tar.gz
tar -xzf mongo-cxx-driver-r3.6.1.tar.gz
rm mongo-cxx-driver-r3.6.1.tar.gz
cd mongo-cxx-driver-r3.6.1/build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DBSONCXX_POLY_USE_MNMLSTC=1
cmake --build . --target EP_mnmlstc_core
make -j4
cmake --build . --target install
cd ../../../../