mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 10:03:55 +08:00
* build docker image with scons cache
* use setup
* scons cache
* added the dockerfile
* add the shell
* docs use cache
* dont pull lfs for docs
* simulator too
* dont pull the cache image
* fix inputs
* inputs
* booleans aren't supported
* bool not supported
* bool isnt supported
* fix
* readonly cache
* fix sim cache too
* respect readonly
* gitignore and move to correct folder
* also copy old
* move to tools/ci
* move to selfdrive/test
* just make the cache writable, it's discarded anyway
* minimize diff in this pr
old-commit-hash: 197460e061
37 lines
1.2 KiB
Docker
37 lines
1.2 KiB
Docker
FROM scons-cache as scons-cache
|
|
|
|
FROM ghcr.io/commaai/openpilot-base-cl:latest
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
tmux \
|
|
vim \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# get same tmux config used on NEOS for debugging
|
|
RUN cd $HOME && \
|
|
curl -O https://raw.githubusercontent.com/commaai/eon-neos-builder/master/devices/eon/home/.tmux.conf
|
|
|
|
ENV PYTHONPATH $HOME/openpilot:${PYTHONPATH}
|
|
RUN mkdir -p $HOME/openpilot
|
|
|
|
COPY SConstruct $HOME/openpilot/
|
|
|
|
COPY ./openpilot $HOME/openpilot/openpilot
|
|
COPY ./body $HOME/openpilot/body
|
|
COPY ./third_party $HOME/openpilot/third_party
|
|
COPY ./site_scons $HOME/openpilot/site_scons
|
|
COPY ./rednose $HOME/openpilot/rednose
|
|
COPY ./laika $HOME/openpilot/laika
|
|
COPY ./common $HOME/openpilot/common
|
|
COPY ./opendbc $HOME/openpilot/opendbc
|
|
COPY ./cereal $HOME/openpilot/cereal
|
|
COPY ./panda $HOME/openpilot/panda
|
|
COPY ./selfdrive $HOME/openpilot/selfdrive
|
|
COPY ./system $HOME/openpilot/system
|
|
COPY ./tools $HOME/openpilot/tools
|
|
|
|
WORKDIR $HOME/openpilot
|
|
RUN --mount=type=bind,from=scons-cache,source=/tmp/scons_cache,target=/tmp/scons_cache,rw scons -j12
|
|
|
|
RUN python -c "from openpilot.selfdrive.test.helpers import set_params_enabled; set_params_enabled()"
|