forked from commaai/panda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* automated -> hitl * simplify * jenkinsfile cleanup * cleanup * fix new linter errors * fix ws cleanup * some retry * more cleaning up after ourselves * unpin scons * bump opendbc * fix quotes * enable flaky * debug print Co-authored-by: Bruce Wayne <batman@comma.ai>
- Loading branch information
1 parent
49e2034
commit b3e9292
Showing
22 changed files
with
139 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,91 @@ | ||
FROM ubuntu:20.04 | ||
ENV PYTHONUNBUFFERED 1 | ||
ENV PYTHONPATH /tmp/openpilot:$PYTHONPATH | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get install -y \ | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
autoconf \ | ||
automake \ | ||
bash \ | ||
bison \ | ||
bzip2 \ | ||
ca-certificates \ | ||
capnproto \ | ||
clang \ | ||
curl \ | ||
dfu-util \ | ||
flex \ | ||
g++ \ | ||
gawk \ | ||
gcc \ | ||
gcc-arm-none-eabi libnewlib-arm-none-eabi \ | ||
git \ | ||
gperf \ | ||
help2man \ | ||
iputils-ping \ | ||
libarchive-dev \ | ||
libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libswscale-dev libavresample-dev libavfilter-dev \ | ||
libbz2-dev \ | ||
libexpat-dev \ | ||
libcapnp-dev \ | ||
libcurl4-openssl-dev \ | ||
libffi-dev \ | ||
libssl-dev \ | ||
libstdc++-arm-none-eabi-newlib \ | ||
libtool \ | ||
libtool-bin \ | ||
libssl-dev \ | ||
libsqlite3-dev \ | ||
libusb-1.0-0 \ | ||
locales \ | ||
libzmq3-dev \ | ||
locales \ | ||
opencl-headers \ | ||
ocl-icd-opencl-dev \ | ||
make \ | ||
ncurses-dev \ | ||
network-manager \ | ||
patch \ | ||
pkg-config \ | ||
python \ | ||
python-dev \ | ||
python3-serial \ | ||
sed \ | ||
texinfo \ | ||
unrar-free \ | ||
unzip \ | ||
wget \ | ||
build-essential \ | ||
python-dev \ | ||
screen \ | ||
vim \ | ||
wget \ | ||
wireless-tools \ | ||
zlib1g-dev | ||
zlib1g-dev \ | ||
&& rm -rf /var/lib/apt/lists/* && \ | ||
cd /usr/lib/gcc/arm-none-eabi/9.2.1 && \ | ||
rm -rf arm/ && \ | ||
rm -rf thumb/nofp thumb/v6* thumb/v8* thumb/v7+fp thumb/v7-r+fp.sp | ||
|
||
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}" | ||
RUN pyenv install 3.8.10 | ||
RUN pyenv global 3.8.10 | ||
RUN pyenv rehash | ||
|
||
RUN pip install --upgrade pip==18.0 | ||
ENV PANDA_PATH=/tmp/openpilot/panda | ||
ENV OPENPILOT_REF="ee0dd36a3c775dbd82493c84f4e7272c1eb3fcbd" | ||
ENV OPENDBC_REF="296f190000a2e71408e207ba21a2257cc853ec15" | ||
|
||
COPY requirements.txt /tmp/ | ||
RUN pip install -r /tmp/requirements.txt | ||
RUN pyenv install 3.8.10 && \ | ||
pyenv global 3.8.10 && \ | ||
pyenv rehash && \ | ||
pip install --no-cache-dir -r /tmp/requirements.txt | ||
|
||
ENV CPPCHECK_DIR=/tmp/cppcheck | ||
COPY tests/misra/install.sh /tmp/ | ||
RUN /tmp/install.sh | ||
|
||
ENV PYTHONPATH /tmp:$PYTHONPATH | ||
RUN git config --global --add safe.directory /tmp/openpilot/panda | ||
RUN cd /tmp && \ | ||
git clone https://github.com/commaai/openpilot.git tmppilot || true && \ | ||
cd /tmp/tmppilot && \ | ||
git fetch origin $OPENPILOT_REF && \ | ||
git checkout $OPENPILOT_REF && \ | ||
git submodule update --init cereal opendbc rednose_repo && \ | ||
git -C opendbc fetch && \ | ||
git -C opendbc checkout $OPENDBC_REF && \ | ||
git -C opendbc reset --hard HEAD && \ | ||
git -C opendbc clean -xfd && \ | ||
mkdir /tmp/openpilot && \ | ||
cp -pR SConstruct site_scons/ tools/ selfdrive/ system/ common/ cereal/ opendbc/ rednose/ third_party/ /tmp/openpilot && \ | ||
rm -rf /tmp/openpilot/panda && \ | ||
rm -rf /tmp/tmppilot | ||
|
||
RUN cd /tmp && git clone https://github.com/commaai/panda_jungle.git && \ | ||
RUN cd /tmp/openpilot && \ | ||
git clone https://github.com/commaai/panda_jungle.git && \ | ||
cd panda_jungle && \ | ||
git fetch && \ | ||
git checkout 7b7197c605915ac34f3d62f314edd84e2e78a759 | ||
git checkout 7b7197c605915ac34f3d62f314edd84e2e78a759 && \ | ||
rm -rf .git/ | ||
|
||
ADD ./panda.tar.gz /tmp/panda | ||
RUN cd /tmp/openpilot && \ | ||
pip install --no-cache-dir -r opendbc/requirements.txt && \ | ||
pip install --no-cache-dir --upgrade aenum lru-dict pycurl tenacity atomicwrites serial smbus2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ cffi==1.14.3 | |
crcmod | ||
pre-commit==2.13.0 | ||
pylint==2.5.2 | ||
scons==4.1.0.post1 | ||
scons | ||
flaky |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.