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

albatross
siggie0815 2021-05-15 05:00:13 +02:00 committed by GitHub
parent a7b3df5df8
commit 4b7ea0a032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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\