sim: mount working dir to the same dir in the container (#20908)

old-commit-hash: 4b7ea0a0329ebae3a56965270eac6dedd6a0e1d1
This commit is contained in:
siggie0815
2021-05-15 05:00:13 +02:00
committed by GitHub
parent 0587efb4d5
commit c3a6cc6aa0
+2 -2
View File
@@ -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\