From 4b131dd1da87bd0bb7661d64b50ab24cb5464eb1 Mon Sep 17 00:00:00 2001 From: ugackMiner53 Date: Mon, 4 Sep 2023 19:18:24 +0000 Subject: [PATCH 1/2] ZED Engine Builder docker image --- docker/zed-engine-builder/Dockerfile | 13 +++++++++++++ docker/zed-engine-builder/build | 24 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 docker/zed-engine-builder/Dockerfile create mode 100755 docker/zed-engine-builder/build diff --git a/docker/zed-engine-builder/Dockerfile b/docker/zed-engine-builder/Dockerfile new file mode 100644 index 0000000..c1e912d --- /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 From d51b61110e1fd616115a4133af8e959bcf1281d1 Mon Sep 17 00:00:00 2001 From: ugackMiner53 Date: Mon, 4 Sep 2023 19:35:31 +0000 Subject: [PATCH 2/2] Comment out the last line, it causes some sort of crash with make being unable to find things that are there at runtime but not at build time --- docker/zed-engine-builder/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/zed-engine-builder/Dockerfile b/docker/zed-engine-builder/Dockerfile index c1e912d..c707901 100644 --- a/docker/zed-engine-builder/Dockerfile +++ b/docker/zed-engine-builder/Dockerfile @@ -10,4 +10,4 @@ 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 +# RUN cmake . && make \ No newline at end of file