[go: nahoru, domu]

Skip to content

Commit

Permalink
x86 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed Jun 3, 2022
1 parent 246f554 commit 54a01ec
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ FROM ${BASE_IMAGE}
ENV DEBIAN_FRONTEND=noninteractive
ENV SHELL /bin/bash

WORKDIR jetson-inference
WORKDIR /jetson-inference


#
Expand Down
2 changes: 1 addition & 1 deletion docker/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ push()
echo "done pushing image $CONTAINER_REMOTE_IMAGE"
}

push "jetson-inference:r$L4T_VERSION"
push $TAG
30 changes: 24 additions & 6 deletions docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,28 @@ echo "V4L2_DEVICES: $V4L2_DEVICES"
# run the container
sudo xhost +si:localuser:root

sudo docker run --runtime nvidia -it --rm --security-opt seccomp=unconfined --network host -e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix/:/tmp/.X11-unix \
-v /tmp/argus_socket:/tmp/argus_socket \
-v /etc/enctune.conf:/etc/enctune.conf \
$V4L2_DEVICES $DATA_VOLUME $USER_VOLUME \
$CONTAINER_IMAGE $USER_COMMAND
if [ $ARCH = "aarch64" ]; then

sudo docker run --runtime nvidia -it --rm \
--network host \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix/:/tmp/.X11-unix \
-v /tmp/argus_socket:/tmp/argus_socket \
-v /etc/enctune.conf:/etc/enctune.conf \
$V4L2_DEVICES $DATA_VOLUME $USER_VOLUME \
$CONTAINER_IMAGE $USER_COMMAND

elif [ $ARCH = "x86_64" ]; then

sudo docker run --gpus all -it --rm \
--network=host \
--shm-size=8g \
--ulimit memlock=-1 \
--ulimit stack=67108864 \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix/:/tmp/.X11-unix \
$V4L2_DEVICES $DATA_VOLUME $USER_VOLUME \
$CONTAINER_IMAGE $USER_COMMAND

fi

1 change: 1 addition & 0 deletions docker/tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ if [ $ARCH = "aarch64" ]; then
elif [ $ARCH = "x86_64" ]; then
# TODO: add logic here for getting the latest release
CONTAINER_IMAGE="jetson-inference:22.06"
CONTAINER_REMOTE_IMAGE="dustynv/$CONTAINER_IMAGE"
fi

# TAG is always the local container name
Expand Down

0 comments on commit 54a01ec

Please sign in to comment.