mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
sim: mount working dir to the same dir in the container (#20908)
old-commit-hash: 4b7ea0a0329ebae3a56965270eac6dedd6a0e1d1
This commit is contained in:
@@ -11,8 +11,8 @@ docker pull ghcr.io/commaai/openpilot-sim:latest
|
||||
OPENPILOT_DIR="/openpilot"
|
||||
if ! [[ -z "$MOUNT_OPENPILOT" ]]
|
||||
then
|
||||
EXTRA_ARGS="-v $PWD/../..:/root/openpilot -e PYTHONPATH=/root/openpilot:$PYTHONPATH"
|
||||
OPENPILOT_DIR="/root/openpilot"
|
||||
OPENPILOT_DIR="$(dirname $(dirname $DIR))"
|
||||
EXTRA_ARGS="-v $OPENPILOT_DIR:$OPENPILOT_DIR -e PYTHONPATH=$OPENPILOT_DIR:$PYTHONPATH"
|
||||
fi
|
||||
|
||||
docker run --net=host\
|
||||
|
||||
Reference in New Issue
Block a user