Skip to content
Closed
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
55 changes: 51 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,51 @@
FROM nvcr.io/nvidia/l4t-base:r32.2.1
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y build-essential bc
RUN groupadd -g 998 jenkins
RUN useradd -u 998 -g jenkins -s /bin/bash -m jenkins
# syntax=docker/dockerfile:1

# Use a stable Ubuntu base image
FROM ubuntu:22.04

# Avoid interactive prompts during package installs
ENV DEBIAN_FRONTEND=noninteractive

# Build args for workspace and driver source folder
ARG workspace=/workspace
ARG driver_src_folder=drivers

# Make them available at runtime if needed
ENV workspace=${workspace}
ENV driver_src_folder=${driver_src_folder}

# Update and install required packages, then create directories
RUN set -xe \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential bc gcc-aarch64-linux-gnu wget flex bison curl libssl-dev xxd kmod git ca-certificates nano \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p ${workspace}/src/${driver_src_folder}/l4t-gcc/6.x
# Configure git for better cloning in Docker
RUN git config --global http.postBuffer 1048576000 \
&& git config --global http.version HTTP/1.1 \
&& git config --global http.lowSpeedLimit 1000 \
&& git config --global http.lowSpeedTime 600 \
&& git config --global core.compression 0 \
&& git config --global transfer.fsckObjects false \
&& git config --global receive.fsckObjects false \
&& git config --global fetch.fsckObjects false

# Clone the realsense MIPI platform driver repository
WORKDIR ${workspace}/src/${driver_src_folder}
RUN set -xe \
&& git clone --depth 1 --progress --branch new-pipeline https://github.com/realsenseai/realsense_mipi_platform_driver.git \
&& cd realsense_mipi_platform_driver \

# Default working directory
WORKDIR ${workspace}/src/${driver_src_folder}/l4t-gcc/6.x

# Show final state for quick verification
RUN echo "Workspace: ${workspace}" && \
echo "Driver src: ${driver_src_folder}" && \
echo "PWD: $(pwd)" && \
gcc --version && \
aarch64-linux-gnu-gcc --version || true

# Default command
CMD ["bash"]
3 changes: 2 additions & 1 deletion scripts/source_sync_6.x.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ function DownloadAndSync {
fi
else
echo "Downloading default $WHAT source..."

echo "YM debug"
echo "Clone into: $REPO_URL source dir: ${LDK_SOURCE_DIR}"
if ! git clone -n "$REPO_URL" ${LDK_SOURCE_DIR} 2>&1 >/dev/null; then
echo "$2 source sync failed"
return 3
Expand Down
2 changes: 1 addition & 1 deletion setup_workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export DEVDIR=$(cd `dirname $0` && pwd)
echo "Setup JetPack $1 to sources_$JETPACK_VERSION"

# Display NVIDIA license

Copilot AI Dec 2, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The DisplayNvidiaLicense call has been commented out without explanation. If this is intentional (e.g., license display is no longer required), consider adding a comment explaining why this was disabled. If the function or its dependencies are being removed, consider removing this line entirely rather than leaving it commented.

Suggested change
# Display NVIDIA license
# Display NVIDIA license
# The DisplayNvidiaLicense call is intentionally disabled. License display is no longer required for this script.

Copilot uses AI. Check for mistakes.
DisplayNvidiaLicense "${REVISION}" "${LICENSE}"
# DisplayNvidiaLicense "${REVISION}" "${LICENSE}"

# Install L4T gcc if not installed
if [[ $(uname -m) == aarch64 ]]; then
Expand Down