mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 06:33:57 +08:00
* run simulator test in ci
* block navd process
* block ui
* fix jenkins
* build docker
* remove tty
* remove tty for carla
* detach carla_sim
* more retries
* only build once
* add more time for bridge
* cleanup
* use qt offscreen
* expose to docker
* block ui
* use new dockerimage
* fix
* from ubuntu20.04
* install curl
* add ssh
* add locales
* noninteractive
* syntax
* use base
* smaller image
* add git + git lfs
* kill carla
* run in parallel
* fix missing agents
* default agent?
* little cleanup
* default doesn't work
* not in ci
* fix path
* fix path
* new msg
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5add0c6159
37 lines
913 B
Bash
Executable File
37 lines
913 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
cd $DIR
|
|
|
|
OPENPILOT_DIR="/openpilot"
|
|
if ! [[ -z "$MOUNT_OPENPILOT" ]]; then
|
|
OPENPILOT_DIR="$(dirname $(dirname $DIR))"
|
|
EXTRA_ARGS="-v $OPENPILOT_DIR:$OPENPILOT_DIR -e PYTHONPATH=$OPENPILOT_DIR:$PYTHONPATH"
|
|
fi
|
|
|
|
if [[ "$CI" ]]; then
|
|
CMD="CI=1 ${OPENPILOT_DIR}/tools/sim/tests/test_carla_integration.py"
|
|
else
|
|
# expose X to the container
|
|
xhost +local:root
|
|
|
|
docker pull ghcr.io/commaai/openpilot-sim:latest
|
|
CMD="./tmux_script.sh $*"
|
|
EXTRA_ARGS="${EXTRA_ARGS} -it"
|
|
fi
|
|
|
|
docker run --net=host\
|
|
--name openpilot_client \
|
|
--rm \
|
|
--gpus all \
|
|
--device=/dev/dri:/dev/dri \
|
|
--device=/dev/input:/dev/input \
|
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
--shm-size 1G \
|
|
-e DISPLAY=$DISPLAY \
|
|
-e QT_X11_NO_MITSHM=1 \
|
|
-w "$OPENPILOT_DIR/tools/sim" \
|
|
$EXTRA_ARGS \
|
|
ghcr.io/commaai/openpilot-sim:latest \
|
|
/bin/bash -c "$CMD"
|