forked from etwest/DynamicQueriesCC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
119 lines (102 loc) · 2.89 KB
/
Dockerfile
File metadata and controls
119 lines (102 loc) · 2.89 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# build
FROM ubuntu:24.04 AS build
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
cmake \
git \
sudo \
gnupg \
# libboost-context-dev \
# libboost-filesystem-dev \
# libboost-program-options-dev \
# libboost-system-dev \
# libboost-thread-dev \
libboost-all-dev \
libdouble-conversion-dev \
libfast-float-dev \
libevent-dev \
libfmt-dev \
libgflags-dev \
libgoogle-glog-dev \
libjemalloc-dev \
libmimalloc-dev \
libssl-dev \
libunwind-dev \
libzstd-dev \
ninja-build \
openmpi-bin \
libopenmpi-dev \
python3 \
python3-venv \
wget \
libtbb-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt/deps
# install the latest version of fast-float
# TODO - checkout a specific tag/release
RUN git clone https://github.com/fastfloat/fast_float.git \
&& cd fast_float \
&& cmake -B build -DFASTFLOAT_TEST=OFF \
&& sudo cmake --build build --target install
# build folly + install dependencies we may have missed
# TODO - would be good to enumerate them
# RUN git clone https://github.com/facebook/folly.git
# WORKDIR /opt/deps/folly
# RUN python3 ./build/fbcode_builder/getdeps.py install-system-deps --recursive
# ENV FOLLY_PREFIX=/opt/deps/folly/_build/opt/facebook
# ENV CMAKE_PREFIX_PATH=${FOLLY_PREFIX}:${CMAKE_PREFIX_PATH}
# build DynamicQueriesCC in Release
WORKDIR /opt/dynamiccc
COPY . .
# remove old build director
RUN rm -rf build
RUN cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=${FOLLY_PREFIX} \
-DSKETCH_BUFFER_SIZE=5 \
-DPARLAY_TBB=On \
&& cmake --build build --target \
dynamicCC_tests \
mpi_dynamicCC_tests \
hybrid_mpi_dynamicCC_tests \
hybrid_shmem_dynamicCC_tests \
-j "$(nproc)"
# ------------------------------
# runtime
FROM ubuntu:24.04 AS runtime
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
git \
libboost-context-dev \
libboost-filesystem-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-thread-dev \
libdouble-conversion-dev \
libevent-dev \
libfmt-dev \
libgflags-dev \
libgoogle-glog-dev \
libjemalloc-dev \
libmimalloc-dev \
libssl-dev \
libunwind-dev \
libzstd-dev \
openmpi-bin \
libopenmpi-dev \
python3 \
wget \
libtbb-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt/dynamiccc
# project binaries and libs
COPY --from=build /opt/dynamiccc/build/*tests /opt/dynamiccc/bin/
COPY scripts ./scripts
ENV PATH="/opt/dynamiccc/bin:${PATH}"
ENV LD_LIBRARY_PATH="/opt/dynamiccc/lib:${LD_LIBRARY_PATH}"
ENTRYPOINT ["/bin/bash"]