Skip to content

Commit

Permalink
Add env DATA_VOLUME_PATH to change data path
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Dec 21, 2023
1 parent 79d0ed7 commit 6d5f32f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# https://docs.docker.com/engine/reference/commandline/run/
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

DATA_VOLUME_PATH="${DATA_VOLUME_PATH:-"$ROOT/data"}"

# check for V4L2 devices
V4L2_DEVICES=""

Expand Down Expand Up @@ -51,7 +53,7 @@ if [ $ARCH = "aarch64" ]; then
--volume /etc/enctune.conf:/etc/enctune.conf \
--volume /etc/nv_tegra_release:/etc/nv_tegra_release \
--volume /tmp/nv_jetson_model:/tmp/nv_jetson_model \
--volume $ROOT/data:/data \
--volume $DATA_VOLUME_PATH:/data \
--device /dev/snd \
--device /dev/bus/usb \
$DATA_VOLUME $DISPLAY_DEVICE $V4L2_DEVICES \
Expand All @@ -66,7 +68,7 @@ elif [ $ARCH = "x86_64" ]; then
--ulimit memlock=-1 \
--ulimit stack=67108864 \
--env NVIDIA_DRIVER_CAPABILITIES=all \
--volume $ROOT/data:/data \
--volume $DATA_VOLUME_PATH:/data \
$DATA_VOLUME $DISPLAY_DEVICE $V4L2_DEVICES \
"$@"
fi

0 comments on commit 6d5f32f

Please sign in to comment.