Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zed Engine Builder #3

Open
wants to merge 2 commits into
base: DDS
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docker/zed-engine-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
24 changes: 24 additions & 0 deletions docker/zed-engine-builder/build
Original file line number Diff line number Diff line change
@@ -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