forked from mutable-org/mutable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (34 loc) · 1.33 KB
/
Dockerfile
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
FROM ubuntu:24.04
# Install packages
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt-get install -y git curl cmake ninja-build clang-17 libpq-dev python3.10 python3.10-dev pipenv graphviz graphviz-dev postgresql texlive-latex-extra dvipng cm-super texlive-fonts-extra
# Set working directory for all following commands
COPY ./ ./
WORKDIR ./
# Install Python packages
RUN curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python3.10 get-pip.py
RUN pipenv run python3.10 -m pip install --upgrade setuptools
RUN pipenv sync --python 3.10
# Build mutable
RUN cmake -S . -B build/release \
-G Ninja \
-DCMAKE_C_COMPILER=clang-17 \
-DCMAKE_CXX_COMPILER=clang++-17 \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DENABLE_SANITIZERS=OFF \
-DENABLE_SANITY_FIELDS=OFF \
-DWITH_V8=ON
RUN cmake --build build/release -t gitversion
RUN cmake --build build/release -t V8
RUN ln -sf /usr/bin/clang-17 /usr/bin/clang
RUN ln -sf /usr/bin/clang++-17 /usr/bin/clang++
RUN cmake --build build/release -t Boost
RUN cmake --build build/release
# Make shellscripts executable
RUN chmod +x ./benchmark/result-db-eval/run_evaluation_time_experiments.sh
RUN chmod +x ./benchmark/result-db-eval/run_synthetic_experiments.sh
RUN chmod +x ./benchmark/result-db-eval/job/setup_postgres.sh