From 879b85c92c387e1a285f4ef117c21b876439ba88 Mon Sep 17 00:00:00 2001 From: Dustin Franklin Date: Tue, 13 Jul 2021 10:42:19 -0400 Subject: [PATCH] updated build script --- docker/build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docker/build.sh b/docker/build.sh index 795613b54..7a07f37c3 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -45,8 +45,22 @@ rm -rf python/training/detection/ssd/data/* rm -rf python/training/detection/ssd/models/* +# opencv.csv mounts files that preclude us installing different version of opencv +# temporarily disable the opencv.csv mounts while we build the container +CV_CSV="/etc/nvidia-container-runtime/host-files-for-container.d/opencv.csv" + +if [ -f "$CV_CSV" ]; then + sudo mv $CV_CSV $CV_CSV.backup +fi + + # build the container sudo docker build -t jetson-inference:r$L4T_VERSION -f Dockerfile \ --build-arg BASE_IMAGE=$BASE_IMAGE \ . + +# restore opencv.csv mounts +if [ -f "$CV_CSV.backup" ]; then + sudo mv $CV_CSV.backup $CV_CSV +fi