mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 18:53:55 +08:00
* Try poetry * Remove casadi for now * Update docker * Copy pipfiles * add casadi back * Too many slashes * New poetry api * Install system * Try again * No more pipenv * new dependencies * updates * poetry 1.2.1, install dev dependencies * keep install pipenv for xx for now? * add pre-commit checks for poetry * poetry lock is too slow * update pip * migrate to poetry groups * update lockfile * don't need to specify dev group unless it is made optional * always install poetry * set POETRY_VIRTUALENVS_CREATE instead, and use pipenv for xx * use env for docs docker image * alphabetical * poetry 1.2.2 * add dev dependencies for typing added in4e310b80* remove constraint * fix PIPENV_SYSTEM * remove constraint * don't need this here * bump * bump pipenv adds support for installing local pyprojects (can add openpilot as dependency of xx) * README improvements * probably not necessary * bump pip * maybe not necessary? * revert * don't install openpilot itself into the virtual env * remove PySide2 and shiboken2 revertsc6b749fb96* remove Pipenv, add xx dependencies, sync system python * add pipenv as xx dep * semver package constraints, use old lockfile versions * fix casadi * remove whitespace Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> * disable poetry cache * cleanup * prefer config file Co-authored-by: Cameron Clough <cameronjclough@gmail.com> Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
42 lines
1.2 KiB
Docker
42 lines
1.2 KiB
Docker
FROM ghcr.io/commaai/openpilot-base:latest
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
ENV OPENPILOT_PATH /home/batman/openpilot/
|
|
ENV PYTHONPATH ${OPENPILOT_PATH}:${PYTHONPATH}
|
|
ENV POETRY_VIRUALENVS_CREATE false
|
|
|
|
RUN mkdir -p ${OPENPILOT_PATH}
|
|
WORKDIR ${OPENPILOT_PATH}
|
|
|
|
COPY SConstruct ${OPENPILOT_PATH}
|
|
|
|
COPY ./pyextra ${OPENPILOT_PATH}/pyextra
|
|
COPY ./third_party ${OPENPILOT_PATH}/third_party
|
|
COPY ./site_scons ${OPENPILOT_PATH}/site_scons
|
|
COPY ./laika ${OPENPILOT_PATH}/laika
|
|
COPY ./laika_repo ${OPENPILOT_PATH}/laika_repo
|
|
COPY ./rednose ${OPENPILOT_PATH}/rednose
|
|
COPY ./rednose_repo ${OPENPILOT_PATH}/rednose_repo
|
|
COPY ./tools ${OPENPILOT_PATH}/tools
|
|
COPY ./release ${OPENPILOT_PATH}/release
|
|
COPY ./common ${OPENPILOT_PATH}/common
|
|
COPY ./opendbc ${OPENPILOT_PATH}/opendbc
|
|
COPY ./cereal ${OPENPILOT_PATH}/cereal
|
|
COPY ./panda ${OPENPILOT_PATH}/panda
|
|
COPY ./selfdrive ${OPENPILOT_PATH}/selfdrive
|
|
COPY ./system ${OPENPILOT_PATH}/system
|
|
COPY ./*.md ${OPENPILOT_PATH}/
|
|
|
|
RUN scons -j$(nproc)
|
|
|
|
RUN apt update && apt install doxygen -y
|
|
COPY ./docs ${OPENPILOT_PATH}/docs
|
|
RUN git init .
|
|
WORKDIR ${OPENPILOT_PATH}/docs
|
|
RUN make html
|
|
|
|
FROM nginx:1.21
|
|
COPY --from=0 /home/batman/openpilot/build/docs/html /usr/share/nginx/html
|
|
COPY ./docs/docker/nginx.conf /etc/nginx/conf.d/default.conf
|