mirror of https://github.com/commaai/cereal.git
59 lines
1.3 KiB
Docker
59 lines
1.3 KiB
Docker
FROM ubuntu:20.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 \
|
|
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 \
|
|
python-openssl \
|
|
tk-dev \
|
|
wget \
|
|
xz-utils \
|
|
zlib1g-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
|
|
ENV PATH="/root/.pyenv/bin:/root/.pyenv/shims:${PATH}"
|
|
RUN pyenv install 3.11.4 && \
|
|
pyenv global 3.11.4 && \
|
|
pyenv rehash && \
|
|
pip3 install --no-cache-dir pyyaml Cython scons pycapnp pre-commit ruff parameterized coverage numpy
|
|
|
|
WORKDIR /project/
|
|
RUN cd /tmp/ && \
|
|
git clone https://github.com/catchorg/Catch2.git && \
|
|
cd Catch2 && \
|
|
git checkout 229cc4823c8cbe67366da8179efc6089dd3893e9 && \
|
|
mv single_include/catch2/ /project/ && \
|
|
cd .. \
|
|
rm -rf Catch2
|
|
|
|
WORKDIR /project/cereal
|
|
|
|
ENV PYTHONPATH=/project
|
|
|
|
COPY . .
|
|
RUN rm -rf .git && \
|
|
scons -c && scons -j$(nproc)
|