Skip to content

Commit 6558cac

Browse files
committed
chore(ci): adapt also golang-based backends docker images
1 parent b417276 commit 6558cac

File tree

2 files changed

+37
-5
lines changed

2 files changed

+37
-5
lines changed

backend/Dockerfile.golang

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ENV DEBIAN_FRONTEND=noninteractive
1313
ARG TARGETARCH
1414
ARG TARGETVARIANT
1515
ARG GO_VERSION=1.22.6
16+
ARG UBUNTU_VERSION=2204
1617

1718
RUN apt-get update && \
1819
apt-get install -y --no-install-recommends \
@@ -32,6 +33,7 @@ ENV PATH=/usr/local/cuda/bin:${PATH}
3233
# HipBLAS requirements
3334
ENV PATH=/opt/rocm/bin:${PATH}
3435

36+
3537
# Vulkan requirements
3638
RUN <<EOT bash
3739
if [ "${BUILD_TYPE}" = "vulkan" ] && [ "${SKIP_DRIVERS}" = "false" ]; then
@@ -50,15 +52,19 @@ EOT
5052

5153
# CuBLAS requirements
5254
RUN <<EOT bash
53-
if [ "${BUILD_TYPE}" = "cublas" ] && [ "${SKIP_DRIVERS}" = "false" ]; then
55+
if ( [ "${BUILD_TYPE}" = "cublas" ] || [ "${BUILD_TYPE}" = "l4t" ] ) && [ "${SKIP_DRIVERS}" = "false" ]; then
5456
apt-get update && \
5557
apt-get install -y --no-install-recommends \
5658
software-properties-common pciutils
5759
if [ "amd64" = "$TARGETARCH" ]; then
58-
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
60+
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu${UBUNTU_VERSION}/x86_64/cuda-keyring_1.1-1_all.deb
5961
fi
6062
if [ "arm64" = "$TARGETARCH" ]; then
61-
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/arm64/cuda-keyring_1.1-1_all.deb
63+
if [ "${CUDA_MAJOR_VERSION}" = "13" ]; then
64+
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu${UBUNTU_VERSION}/sbsa/cuda-keyring_1.1-1_all.deb
65+
else
66+
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu${UBUNTU_VERSION}/arm64/cuda-keyring_1.1-1_all.deb
67+
fi
6268
fi
6369
dpkg -i cuda-keyring_1.1-1_all.deb && \
6470
rm -f cuda-keyring_1.1-1_all.deb && \
@@ -69,12 +75,31 @@ RUN <<EOT bash
6975
libcurand-dev-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} \
7076
libcublas-dev-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} \
7177
libcusparse-dev-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} \
72-
libcusolver-dev-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} && \
78+
libcusolver-dev-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION}
79+
if [ "${CUDA_MAJOR_VERSION}" = "13" ] && [ "arm64" = "$TARGETARCH" ]; then
80+
apt-get install -y --no-install-recommends \
81+
libcufile-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} libcudnn9-cuda-${CUDA_MAJOR_VERSION} cuda-cupti-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION} libnvjitlink-${CUDA_MAJOR_VERSION}-${CUDA_MINOR_VERSION}
82+
fi
7383
apt-get clean && \
7484
rm -rf /var/lib/apt/lists/*
7585
fi
7686
EOT
7787

88+
89+
# https://github.com/NVIDIA/Isaac-GR00T/issues/343
90+
RUN <<EOT bash
91+
if [ "${BUILD_TYPE}" = "cublas" ] && [ "${TARGETARCH}" = "arm64" ]; then
92+
wget https://developer.download.nvidia.com/compute/cudss/0.6.0/local_installers/cudss-local-tegra-repo-ubuntu${UBUNTU_VERSION}-0.6.0_0.6.0-1_arm64.deb && \
93+
dpkg -i cudss-local-tegra-repo-ubuntu${UBUNTU_VERSION}-0.6.0_0.6.0-1_arm64.deb && \
94+
cp /var/cudss-local-tegra-repo-ubuntu${UBUNTU_VERSION}-0.6.0/cudss-*-keyring.gpg /usr/share/keyrings/ && \
95+
apt-get update && apt-get -y install cudss cudss-cuda-${CUDA_MAJOR_VERSION} && \
96+
wget https://developer.download.nvidia.com/compute/nvpl/25.5/local_installers/nvpl-local-repo-ubuntu${UBUNTU_VERSION}-25.5_1.0-1_arm64.deb && \
97+
dpkg -i nvpl-local-repo-ubuntu${UBUNTU_VERSION}-25.5_1.0-1_arm64.deb && \
98+
cp /var/nvpl-local-repo-ubuntu${UBUNTU_VERSION}-25.5/nvpl-*-keyring.gpg /usr/share/keyrings/ && \
99+
apt-get update && apt-get install -y nvpl
100+
fi
101+
EOT
102+
78103
# If we are building with clblas support, we need the libraries for the builds
79104
RUN if [ "${BUILD_TYPE}" = "clblas" ] && [ "${SKIP_DRIVERS}" = "false" ]; then \
80105
apt-get update && \

backend/Dockerfile.python

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,14 @@ ENV PATH="/root/.cargo/bin:${PATH}"
146146
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
147147

148148
# Install grpcio-tools (the version in 22.04 is too old)
149-
RUN pip install --user grpcio-tools==1.71.0 grpcio==1.71.0
149+
RUN <<EOT bash
150+
if [ "${UBUNTU_VERSION}" = "2404" ]; then
151+
pip install --break-system-packages --user grpcio-tools==1.71.0 grpcio==1.71.0
152+
else
153+
pip install grpcio-tools==1.71.0 grpcio==1.71.0
154+
fi
155+
EOT
156+
150157

151158
COPY python/${BACKEND} /${BACKEND}
152159
COPY backend.proto /${BACKEND}/backend.proto

0 commit comments

Comments
 (0)