2020-01-18 02:22:00 +08:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
2020-05-19 17:12:57 +08:00
|
|
|
ENV PYTHONPATH /tmp/openpilot:${PYTHONPATH}
|
2020-01-18 02:22:00 +08:00
|
|
|
|
2020-05-17 12:38:38 +08:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
2020-01-18 02:22:00 +08:00
|
|
|
autoconf \
|
|
|
|
build-essential \
|
|
|
|
bzip2 \
|
2020-05-13 09:50:07 +08:00
|
|
|
capnproto \
|
|
|
|
libcapnp-dev \
|
2020-01-18 02:22:00 +08:00
|
|
|
clang \
|
|
|
|
cmake \
|
2020-05-26 13:15:01 +08:00
|
|
|
cppcheck \
|
2020-01-18 02:22:00 +08:00
|
|
|
curl \
|
|
|
|
ffmpeg \
|
|
|
|
git \
|
2020-08-06 15:08:46 +08:00
|
|
|
iputils-ping \
|
2020-01-18 02:22:00 +08:00
|
|
|
libarchive-dev \
|
|
|
|
libbz2-dev \
|
|
|
|
libcurl4-openssl-dev \
|
|
|
|
libeigen3-dev \
|
|
|
|
libffi-dev \
|
|
|
|
libglew-dev \
|
|
|
|
libgles2-mesa-dev \
|
|
|
|
libglfw3-dev \
|
|
|
|
libglib2.0-0 \
|
|
|
|
liblzma-dev \
|
|
|
|
libomp-dev \
|
|
|
|
libopencv-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libsqlite3-dev \
|
|
|
|
libusb-1.0-0-dev \
|
2020-05-13 09:50:07 +08:00
|
|
|
libczmq-dev \
|
|
|
|
libzmq3-dev \
|
2020-01-18 02:22:00 +08:00
|
|
|
locales \
|
|
|
|
ocl-icd-libopencl1 \
|
|
|
|
ocl-icd-opencl-dev \
|
|
|
|
opencl-headers \
|
|
|
|
python-dev \
|
|
|
|
python-pip \
|
|
|
|
sudo \
|
2020-05-17 12:38:38 +08:00
|
|
|
wget \
|
2020-05-19 17:12:57 +08:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2020-01-18 02:22:00 +08:00
|
|
|
|
|
|
|
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US:en
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
|
|
|
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
|
|
|
|
ENV PATH="/root/.pyenv/bin:/root/.pyenv/shims:${PATH}"
|
|
|
|
|
2020-05-17 12:38:38 +08:00
|
|
|
COPY Pipfile Pipfile.lock /tmp/
|
2020-05-19 17:12:57 +08:00
|
|
|
RUN pyenv install 3.8.2 && \
|
|
|
|
pyenv global 3.8.2 && \
|
|
|
|
pyenv rehash && \
|
2020-07-24 18:13:00 +08:00
|
|
|
pip install --no-cache-dir --upgrade pip==20.1.1 && \
|
2020-05-19 17:12:57 +08:00
|
|
|
pip install --no-cache-dir pipenv==2018.11.26 && \
|
|
|
|
cd /tmp && \
|
|
|
|
pipenv install --system --deploy --clear && \
|
|
|
|
pip uninstall -y pipenv && \
|
|
|
|
pip install --no-cache-dir \
|
|
|
|
matplotlib==3.1.1 \
|
|
|
|
dictdiffer==0.8.0 \
|
|
|
|
fastcluster==1.1.25 \
|
|
|
|
aenum==2.2.1 \
|
|
|
|
lru-dict==1.1.6 \
|
|
|
|
scipy==1.4.1 \
|
|
|
|
tenacity==5.1.1 \
|
|
|
|
azure-common==1.1.23 \
|
|
|
|
azure-nspkg==3.0.2 \
|
|
|
|
azure-storage-blob==2.1.0 \
|
|
|
|
azure-storage-common==2.1.0 \
|
|
|
|
azure-storage-nspkg==3.1.0 \
|
|
|
|
pycurl==7.43.0.3 \
|
2020-05-29 06:40:48 +08:00
|
|
|
coverage==5.1 \
|
2020-06-24 06:33:04 +08:00
|
|
|
pre-commit==2.4.0 \
|
|
|
|
parameterized==0.7.4
|
2020-01-18 05:13:02 +08:00
|
|
|
|
|
|
|
RUN mkdir -p /tmp/openpilot
|
2020-05-13 09:50:07 +08:00
|
|
|
|
2020-05-19 17:12:57 +08:00
|
|
|
COPY SConstruct \
|
|
|
|
.pylintrc \
|
2020-05-29 06:40:48 +08:00
|
|
|
.pre-commit-config.yaml \
|
2020-05-19 17:12:57 +08:00
|
|
|
/tmp/openpilot/
|
2020-05-05 05:03:16 +08:00
|
|
|
|
2020-01-18 02:22:00 +08:00
|
|
|
COPY ./pyextra /tmp/openpilot/pyextra
|
2020-02-22 09:08:53 +08:00
|
|
|
COPY ./phonelibs /tmp/openpilot/phonelibs
|
2020-02-13 01:40:28 +08:00
|
|
|
COPY ./laika /tmp/openpilot/laika
|
|
|
|
COPY ./laika_repo /tmp/openpilot/laika_repo
|
2020-05-17 12:38:38 +08:00
|
|
|
COPY ./rednose /tmp/openpilot/rednose
|
2020-02-22 09:08:53 +08:00
|
|
|
COPY ./tools /tmp/openpilot/tools
|
|
|
|
COPY ./release /tmp/openpilot/release
|
|
|
|
COPY ./common /tmp/openpilot/common
|
|
|
|
COPY ./opendbc /tmp/openpilot/opendbc
|
|
|
|
COPY ./cereal /tmp/openpilot/cereal
|
|
|
|
COPY ./panda /tmp/openpilot/panda
|
|
|
|
COPY ./selfdrive /tmp/openpilot/selfdrive
|