2020-06-08 18:03:33 -07:00
|
|
|
FROM ubuntu:16.04
|
2019-12-03 10:45:33 -08:00
|
|
|
|
2020-06-08 18:03:33 -07:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
autoconf \
|
|
|
|
build-essential \
|
|
|
|
ca-certificates \
|
|
|
|
capnproto \
|
|
|
|
clang \
|
|
|
|
cppcheck \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
libtool \
|
|
|
|
make \
|
|
|
|
libbz2-dev \
|
|
|
|
libffi-dev \
|
|
|
|
libcapnp-dev \
|
|
|
|
liblzma-dev \
|
|
|
|
libncurses5-dev \
|
|
|
|
libncursesw5-dev \
|
|
|
|
libreadline-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libsqlite3-dev \
|
|
|
|
libzmq3-dev \
|
|
|
|
llvm \
|
|
|
|
tk-dev \
|
|
|
|
python-openssl \
|
|
|
|
xz-utils \
|
|
|
|
zlib1g-dev \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2019-12-03 10:45:33 -08:00
|
|
|
|
|
|
|
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.7.3
|
|
|
|
RUN pyenv global 3.7.3
|
|
|
|
RUN pyenv rehash
|
|
|
|
|
2019-12-03 12:28:43 -08:00
|
|
|
COPY requirements.txt /tmp/
|
2020-06-08 18:03:33 -07:00
|
|
|
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
|
|
|
RUN pip install --no-cache-dir pre-commit==2.4.0 pylint==2.5.2
|
2019-12-03 10:45:33 -08:00
|
|
|
|
|
|
|
ENV PYTHONPATH=/project
|
|
|
|
|
2020-05-12 18:50:31 -07:00
|
|
|
WORKDIR /project
|
2019-12-03 10:45:33 -08:00
|
|
|
# TODO: Add tag to cereal
|
|
|
|
RUN git clone https://github.com/commaai/cereal.git /project/cereal
|
|
|
|
|
|
|
|
COPY SConstruct .
|
|
|
|
COPY . /project/opendbc
|
|
|
|
|
2020-05-28 18:53:42 -07:00
|
|
|
RUN rm -rf /project/opendbc/.git
|
2019-12-03 10:45:33 -08:00
|
|
|
RUN scons -c && scons -j$(nproc)
|