diff --git a/docker/zed-engine-builder/Dockerfile b/docker/zed-engine-builder/Dockerfile new file mode 100644 index 0000000..c707901 --- /dev/null +++ b/docker/zed-engine-builder/Dockerfile @@ -0,0 +1,13 @@ +# JETSON IMAGE +# FROM stereolabs/zed:4.0-devel-jetson-jp5.1.1 +# PC IMAGE +FROM stereolabs/zed:4.0-devel-cuda12.1-ubuntu22.04 + +# Install dependencies +RUN apt update && apt install --yes git cmake make build-essential libnvinfer-dev libnvonnxparsers-dev + +WORKDIR / +RUN git clone https://github.com/RoboEagles4828/zed-engine-builder.git + +WORKDIR /zed-engine-builder +# RUN cmake . && make \ No newline at end of file diff --git a/docker/zed-engine-builder/build b/docker/zed-engine-builder/build new file mode 100755 index 0000000..d9582d7 --- /dev/null +++ b/docker/zed-engine-builder/build @@ -0,0 +1,24 @@ +#!/bin/bash +echo "ONLY USE THIS SCRIPT ON THE JETSON" + +VERSION=1 +GITHUB_REGISTRY="ghcr.io/roboeagles4828" +IMAGE_NAME="zed-engine-builder" + +docker build -t $GITHUB_REGISTRY/$IMAGE_NAME:$VERSION . + +echo "Build finished" + +echo "Would you like to run the image in interactive mode? (y/n)" +read INTERACTIVE + +if [ "$INTERACTIVE" = "y" ]; then + docker run --rm -it -e ACCEPT_EULA=y $GITHUB_REGISTRY/$IMAGE_NAME:$VERSION +fi + +echo "Would you like to push the image to the registry? (y/n)" +read PUSH + +if [ "$PUSH" = "y" ]; then + docker push $GITHUB_REGISTRY/$IMAGE_NAME:$VERSION +fi \ No newline at end of file