Skip to content

Commit

Permalink
Add r36.2 l4t-base image
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed May 29, 2024
1 parent 3ce5bb9 commit debc8ea
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 4 deletions.
File renamed without changes.
79 changes: 79 additions & 0 deletions nvidia/l4t-base/Containerfile.r36
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
FROM docker.io/arm64v8/ubuntu:22.04 as nvidia-l4t-base

ARG RELEASE=r36.2
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -qq -y --no-install-recommends \
bc \
bzip2 \
can-utils \
ca-certificates \
freeglut3-dev \
gnupg2 \
gstreamer1.0-alsa \
gstreamer1.0-libav \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
gstreamer1.0-tools \
i2c-tools \
iw \
kbd \
kmod \
language-pack-en-base \
libapt-pkg-dev \
libcanberra-gtk3-module \
libgles2 \
libglu1-mesa-dev \
libglvnd-dev \
libgtk-3-0 \
libpython2.7 \
libudev1 \
libvulkan1 \
libzmq5 \
mtd-utils \
parted \
pciutils \
python3 \
python3-pexpect \
python3-distutils \
python3-numpy \
sox \
udev \
vulkan-tools \
wget \
wireless-tools wpasupplicant && \
rm -rf /var/lib/apt/lists/* && apt-get clean

COPY jetson-ota-public.key /etc/jetson-ota-public.key
RUN apt-key add /etc/jetson-ota-public.key
RUN echo "deb https://repo.download.nvidia.com/jetson/common $RELEASE main" >> /etc/apt/sources.list

RUN echo "/usr/lib/aarch64-linux-gnu/tegra" >> /etc/ld.so.conf.d/nvidia-tegra.conf && \
echo "/usr/lib/aarch64-linux-gnu/tegra-egl" >> /etc/ld.so.conf.d/nvidia-tegra.conf

RUN rm /usr/share/glvnd/egl_vendor.d/50_mesa.json
RUN mkdir -p /usr/share/glvnd/egl_vendor.d/ && echo '\
{\
"file_format_version" : "1.0.0",\
"ICD" : {\
"library_path" : "libEGL_nvidia.so.0"\
}\
}' > /usr/share/glvnd/egl_vendor.d/10_nvidia.json

RUN mkdir -p /usr/share/egl/egl_external_platform.d/ && echo '\
{\
"file_format_version" : "1.0.0",\
"ICD" : {\
"library_path" : "libnvidia-egl-wayland.so.1"\
}\
}' > /usr/share/egl/egl_external_platform.d/nvidia_wayland.json

RUN ldconfig

ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES all

CMD ["/bin/bash"]
9 changes: 5 additions & 4 deletions nvidia/l4t-base/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ target "default" {
tags = [
"${CONTAINER_REGISTRY}/${IMAGE_NAME}:${item.version}"
]
dockerfile = "Containerfile"
dockerfile = item.dockerfile
platforms = ["linux/arm64/v8"]
labels = {
"org.opencontainers.image.created" = timestamp()
Expand All @@ -25,8 +25,9 @@ target "default" {
}
matrix = {
item = [
{ version = "35.3.1", release = "r35.3" },
{ version = "35.4.1", release = "r35.4" },
{ version = "35.3.1", release = "r35.3", dockerfile = "Containerfile.r35" },
{ version = "35.4.1", release = "r35.4", dockerfile = "Containerfile.r35" },
{ version = "36.2.0", release = "r36.2", dockerfile = "Containerfile.r36" },
]
}
}
}

0 comments on commit debc8ea

Please sign in to comment.