From e4720eb798fcd1ce960010ef86c95cde345cd58e Mon Sep 17 00:00:00 2001 From: Greg Hogan Date: Sun, 30 Aug 2020 17:02:36 -0700 Subject: [PATCH] build script that uses docker container (#1944) --- tools/README.md | 1 + tools/openpilot_build.sh | 1 + 2 files changed, 2 insertions(+) create mode 100644 tools/openpilot_build.sh diff --git a/tools/README.md b/tools/README.md index 9e0965ff6a..2d5eacdcdb 100644 --- a/tools/README.md +++ b/tools/README.md @@ -31,6 +31,7 @@ Setup 1. Run `ubuntu_setup.sh` or `mac_setup.sh`, make sure everything completed correctly 2. Compile openpilot by running ```scons``` in the openpilot directory + or alternatively run ```./openpilot_build.sh``` (uses a pre-configured docker container) 3. Try out some tools! diff --git a/tools/openpilot_build.sh b/tools/openpilot_build.sh new file mode 100644 index 0000000000..f0f89d936e --- /dev/null +++ b/tools/openpilot_build.sh @@ -0,0 +1 @@ +docker run --rm -v $(pwd):/tmp/openpilot -it commaai/openpilot bash -c 'cd /tmp/openpilot && scons -j$(nproc)'