-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
75 lines (62 loc) · 1.69 KB
/
Copy pathDockerfile
File metadata and controls
75 lines (62 loc) · 1.69 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
# Dockerfile for PSI (Parallel Spatial Indexes) Artifact Evaluation
FROM ubuntu:24.04
# Avoid interactive prompts during build
ENV DEBIAN_FRONTEND=noninteractive
# Set working directory
WORKDIR /workspace
# Install system dependencies
RUN apt-get update && apt-get install -y \
# Build essentials
build-essential \
cmake \
g++-14 \
gcc-14 \
git \
wget \
# Boost library
libboost-all-dev \
# Optional performance libraries
libjemalloc-dev \
numactl \
# Python dependencies
python3 \
python3-pip \
python3-venv \
# R for plotting
r-base \
r-base-dev \
# Utilities
time \
vim \
htop \
&& rm -rf /var/lib/apt/lists/*
# Install R packages for plotting
RUN R -e "install.packages(c('ggplot2', 'dplyr', 'tidyr', 'ggsci', 'ggpubr', 'latex2exp', 'scales'), repos='http://cran.rstudio.com/')"
# Install Python packages
RUN pip3 install --no-cache-dir --break-system-packages \
numpy \
pandas \
matplotlib
# Set C++ compiler version
ENV CXX=g++-14
ENV CC=gcc-14
# Copy the project files
COPY . /workspace/SpaceTreeLib
# Set working directory to project
WORKDIR /workspace/SpaceTreeLib
# Initialize git submodules
RUN git submodule update --init --recursive || true
# Create build directory and compile the project
RUN mkdir -p build && \
cd build && \
cmake -DDEBUG=OFF -DCGAL=OFF -DJEMA=OFF .. && \
make -j$(nproc)
# Create directories for data and results
RUN mkdir -p script_ae/logs && \
mkdir -p script_ae/data && \
mkdir -p script_ae/plots
# Set default environment variables
ENV DATA_PREFIX=/data
ENV NODE_SIZE=1000000000
# Set the entry point to bash for interactive use
CMD ["/bin/bash"]