-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
78 lines (51 loc) · 2.42 KB
/
Dockerfile
File metadata and controls
78 lines (51 loc) · 2.42 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
# postgres server 14 on ubuntu 22.04 image
FROM ubuntu:jammy
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get upgrade -qy
#-------------------------------------------- Install XDBC and prerequisites -------------------------------------------
# install dependencies
RUN apt install -qy ca-certificates lsb-release wget pip
RUN wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
RUN apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
RUN apt update && apt install -qy clang libboost-all-dev cmake build-essential git libspdlog-dev gdb nlohmann-json3-dev iproute2 netcat wget libarrow-dev libparquet-dev
# install compression libs
RUN apt install -qy libzstd-dev liblzo2-dev liblz4-dev libsnappy-dev libbrotli-dev
#RUN git clone https://github.com/LLNL/zfp.git && cd zfp && make
RUN git clone https://github.com/lemire/FastPFor.git && cd FastPFor && git checkout 039134b && \
mkdir build && \
cd build && \
cmake .. && \
cmake --build . && \
make install
RUN git clone https://github.com/LLNL/fpzip.git && cd fpzip && \
mkdir build && \
cd build && \
cmake .. && \
cmake --build . --config Release && \
make install
# install postgres dependencies
RUN apt install -qy libpq-dev libpqxx-dev
# install clickhouse depencencies
RUN apt-get install -y libabsl-dev
RUN git clone https://github.com/google/cityhash.git
RUN cd /cityhash && ./configure && make all check CXXFLAGS="-g -O3" && make install
# install clickhouse-lib
RUN git clone https://github.com/ClickHouse/clickhouse-cpp.git
RUN cd /clickhouse-cpp && rm -rf build && mkdir build && cd build && cmake .. -DWITH_SYSTEM_ABSEIL=ON && make -j8 && make install
# install webserver for http experiments
RUN pip install rangehttpserver
# copy and install xdbc server
RUN mkdir /xdbc-server
ADD CMakeLists.txt /xdbc-server/
ADD customQueue.h /xdbc-server/
ADD main.cpp /xdbc-server/
ADD xdbcserver.cpp /xdbc-server/
ADD xdbcserver.h /xdbc-server/
ADD metrics_calculator.h /xdbc-server/
ADD Compression /xdbc-server/Compression
ADD DataSources /xdbc-server/DataSources
RUN ls /xdbc-server
RUN rm -rf /xdbc-server/CMakeCache.txt
RUN rm -rf /xdbc-server/build && mkdir /xdbc-server/build && cd /xdbc-server/build && cmake .. -D CMAKE_BUILD_TYPE=Release && make -j8
ENTRYPOINT ["tail", "-f", "/dev/null"]