2024-06-08 04:32:22 +08:00
|
|
|
FROM ubuntu:24.04
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
autoconf \
|
|
|
|
build-essential \
|
|
|
|
ca-certificates \
|
|
|
|
capnproto \
|
|
|
|
clang \
|
|
|
|
cppcheck \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
libbz2-dev \
|
|
|
|
libcapnp-dev \
|
|
|
|
libclang-rt-dev \
|
|
|
|
libffi-dev \
|
|
|
|
liblzma-dev \
|
|
|
|
libncurses5-dev \
|
|
|
|
libncursesw5-dev \
|
|
|
|
libreadline-dev \
|
|
|
|
libsqlite3-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libtool \
|
|
|
|
libzmq3-dev \
|
|
|
|
llvm \
|
|
|
|
make \
|
|
|
|
cmake \
|
|
|
|
ocl-icd-opencl-dev \
|
|
|
|
opencl-headers \
|
|
|
|
python3-dev \
|
|
|
|
python3-pip \
|
|
|
|
tk-dev \
|
|
|
|
wget \
|
|
|
|
xz-utils \
|
|
|
|
zlib1g-dev \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2024-07-10 13:47:23 +08:00
|
|
|
RUN pip3 install --break-system-packages --no-cache-dir pyyaml Cython scons pycapnp pre-commit ruff parameterized coverage numpy pytest
|
2024-06-08 04:32:22 +08:00
|
|
|
|
2024-08-01 10:09:21 +08:00
|
|
|
WORKDIR /project/msgq
|
2024-06-08 04:32:22 +08:00
|
|
|
RUN cd /tmp/ && \
|
|
|
|
git clone -b v2.x --depth 1 https://github.com/catchorg/Catch2.git && \
|
|
|
|
cd Catch2 && \
|
2024-06-10 08:17:12 +08:00
|
|
|
mv single_include/* /project/msgq/ && \
|
2024-06-08 04:32:22 +08:00
|
|
|
cd .. \
|
|
|
|
rm -rf Catch2
|
|
|
|
|
2024-08-01 10:09:21 +08:00
|
|
|
ENV PYTHONPATH=/project/msgq
|
2024-06-08 04:32:22 +08:00
|
|
|
|
|
|
|
COPY . .
|
2024-06-10 08:17:12 +08:00
|
|
|
RUN ls && rm -rf .git && \
|
2024-06-08 04:32:22 +08:00
|
|
|
scons -c && scons -j$(nproc)
|