Files
dragonpilot/Dockerfile.openpilot

58 lines
1.5 KiB
Docker
Raw Normal View History

2017-07-28 01:24:39 -07:00
FROM ubuntu:16.04
2016-12-12 17:47:46 -08:00
ENV PYTHONUNBUFFERED 1
2019-01-23 15:34:52 -08:00
RUN apt-get update && apt-get install -y \
2019-05-16 13:20:29 -07:00
autoconf \
2019-01-23 15:34:52 -08:00
build-essential \
bzip2 \
2019-06-28 21:11:30 +00:00
clang \
2019-01-23 15:34:52 -08:00
git \
2019-06-28 21:11:30 +00:00
libarchive-dev \
libavcodec-dev \
libavdevice-dev \
libavfilter-dev \
libavresample-dev \
libavutil-dev \
libffi-dev \
2019-01-23 15:34:52 -08:00
libglib2.0-0 \
2019-06-28 21:11:30 +00:00
libssl-dev \
libswscale-dev \
2019-05-16 13:20:29 -07:00
libtool \
2019-01-23 15:34:52 -08:00
libusb-1.0-0 \
2019-06-28 21:11:30 +00:00
libzmq5-dev \
2019-01-23 15:34:52 -08:00
ocl-icd-libopencl1 \
ocl-icd-opencl-dev \
2019-06-28 21:11:30 +00:00
opencl-headers \
pkg-config \
python-pip \
wget
2019-01-23 15:34:52 -08:00
2019-05-16 13:20:29 -07:00
COPY phonelibs/install_capnp.sh /tmp/install_capnp.sh
RUN /tmp/install_capnp.sh
RUN pip install --upgrade pip==18.0
2019-06-28 21:11:30 +00:00
RUN pip install pipenv==2018.11.26
2016-12-12 17:47:46 -08:00
2019-06-28 21:11:30 +00:00
COPY Pipfile /tmp/
COPY Pipfile.lock /tmp/
RUN cd /tmp && pipenv install --deploy --system
2016-12-12 17:47:46 -08:00
ENV PYTHONPATH /tmp/openpilot:$PYTHONPATH
2019-06-28 21:11:30 +00:00
RUN git clone --branch v0.6 https://github.com/commaai/openpilot-tools.git /tmp/openpilot/tools
RUN pip install -r /tmp/openpilot/tools/requirements.txt
RUN pip install fastcluster==1.1.20 scipy==0.19.1
2019-06-28 21:11:30 +00:00
COPY ./.pylintrc /tmp/openpilot/.pylintrc
2017-09-30 03:07:27 -07:00
COPY ./common /tmp/openpilot/common
COPY ./cereal /tmp/openpilot/cereal
COPY ./opendbc /tmp/openpilot/opendbc
COPY ./selfdrive /tmp/openpilot/selfdrive
COPY ./phonelibs /tmp/openpilot/phonelibs
COPY ./pyextra /tmp/openpilot/pyextra
COPY ./panda /tmp/openpilot/panda
2017-09-30 03:07:27 -07:00
2017-10-31 02:27:39 -07:00
RUN mkdir -p /tmp/openpilot/selfdrive/test/out
2018-09-25 00:13:41 -07:00
RUN make -C /tmp/openpilot/selfdrive/controls/lib/longitudinal_mpc clean
RUN make -C /tmp/openpilot/selfdrive/controls/lib/lateral_mpc clean