-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
102 lines (86 loc) · 2.41 KB
/
Dockerfile
File metadata and controls
102 lines (86 loc) · 2.41 KB
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
FROM mcr.microsoft.com/devcontainers/cpp:ubuntu-22.04
RUN sudo apt-get update && sudo apt-get install -y git python3 pip iputils-ping gcc-12 libpq-dev postgresql-client wrk libssl-dev zlib1g-dev librdkafka-dev mysql-client libmysqlclient-dev libboost-all-dev\
&& sudo apt-get clean
RUN git clone -b poco-1.12.4-release https://github.com/pocoproject/poco.git &&\
cd poco &&\
mkdir cmake-build &&\
cd cmake-build &&\
cmake .. &&\
cmake --build . --config Release &&\
sudo cmake --build . --target install &&\
cd && rm poco/* -rf
RUN git clone https://github.com/CopernicaMarketingSoftware/AMQP-CPP.git &&\
cd AMQP-CPP &&\
make &&\
sudo make install &&\
cd && rm AMQP-CPP/* -rf
RUN git clone https://github.com/edenhill/librdkafka.git &&\
cd librdkafka &&\
./configure &&\
make &&\
sudo make install &&\
cd && rm librdkafka/* -rf
RUN git clone https://github.com/mfontanini/cppkafka &&\
cd cppkafka &&\
mkdir build &&\
cd build &&\
cmake .. &&\
make &&\
sudo make install &&\
cd && rm cppkafka/* -rf
RUN git clone https://github.com/tdv/redis-cpp.git &&\
cd redis-cpp &&\
mkdir build &&\
cd build &&\
cmake .. &&\
make &&\
sudo make install &&\
cd ..
RUN git clone --recurse-submodules -b v1.43.0 https://github.com/grpc/grpc &&\
cd grpc &&\
mkdir -p cmake/build &&\
cd cmake/build &&\
cmake -DgRPC_INSTALL=ON -DgRPC_BUILD_TESTS=OFF ../.. &&\
make &&\
make install &&\
cd .. &&\
cd ..
RUN git clone https://github.com/Tencent/rapidjson.git &&\
cd rapidjson &&\
mkdir build &&\
cd build &&\
cmake .. &&\
make &&\
make install &&\
cd .. &&\
cd ..
RUN git clone --recurse-submodules https://github.com/taocpp/PEGTL.git &&\
cd PEGTL &&\
mkdir build &&\
cd build &&\
cmake .. &&\
make &&\
make install &&\
cd .. &&\
cd ..
RUN git clone --recurse-submodules https://github.com/microsoft/cppgraphqlgen.git &&\
cd cppgraphqlgen &&\
mkdir build &&\
cd build &&\
cmake -D GRAPHQL_BUILD_TESTS=OFF .. &&\
make &&\
make install &&\
cd .. &&\
cd ..
RUN git clone https://github.com/yhirose/cpp-httplib &&\
cd cpp-httplib &&\
mkdir build &&\
cd build &&\
cmake .. &&\
make &&\
make install &&\
cd .. &&\
cd ..
RUN ldconfig
WORKDIR /opt/arch
ENTRYPOINT ["/usr/bin/bash"]