Files
sunnypilot/tools/sim/start_openpilot_docker.sh
iejMac afc0597686 Fix simulator docker: CPU only for now (#20227)
* initial commit

* CPU working in dokcer

* Update selfdrive/manager.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/manager.py

* fixes

* fixing env var

* fixes

* building and running in docker

* camerad fix

* camerad fix

* this ACTUALLY works

* removing unused libraries

* updating to CARLA 0.9.11

* removing useless flags

* small changes

* forgot this

* sudo not needed for xhost

* final changes

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 968ed10200
2021-03-07 23:02:57 -08:00

18 lines
367 B
Bash
Executable File

#!/bin/bash
# expose X to the container
xhost +local:root
docker run --net=host\
--name openpilot_client \
--rm \
-it \
--gpus all \
--device=/dev/dri \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--shm-size 1G \
-e DISPLAY=$DISPLAY \
-e QT_X11_NO_MITSHM=1 \
commaai/openpilot-sim:latest \
/bin/bash -c "cd /openpilot/tools/sim && ./tmux_script.sh $*"