mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-10 01:02:11 +08:00
f5e5d688c3
version: sunnypilot v0.9.9 release date: 2025-03-18T06:26:39 master commit: 8e5b656e654a7694c22f2b0b7bee0802db02b4af
21 lines
546 B
Bash
Executable File
21 lines
546 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
OP_ROOT="$DIR/../../"
|
|
|
|
if [ -z "$BUILD" ]; then
|
|
docker pull ghcr.io/commaai/openpilot-base:latest
|
|
else
|
|
docker build --cache-from ghcr.io/commaai/openpilot-base:latest -t ghcr.io/commaai/openpilot-base:latest -f $OP_ROOT/Dockerfile.openpilot_base .
|
|
fi
|
|
|
|
docker run \
|
|
-it \
|
|
--rm \
|
|
--volume $OP_ROOT:$OP_ROOT \
|
|
--workdir $PWD \
|
|
--env PYTHONPATH=$OP_ROOT \
|
|
ghcr.io/commaai/openpilot-base:latest \
|
|
/bin/bash
|