-
Notifications
You must be signed in to change notification settings - Fork 84
Precompiled: Ubuntu26.04 driver container support #758
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
Open
shivakunv
wants to merge
1
commit into
main
Choose a base branch
from
precompiled-ubuntu26.04
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,25 @@ | ||
| { | ||
| "driver_branch": ["580", "595"], | ||
| "kernel_flavors": ["aws", "azure", "azure-fde", "generic", "nvidia", "oracle"], | ||
| "dist": ["ubuntu22.04", "ubuntu24.04"], | ||
| "lts_kernel": ["5.15", "6.8"], | ||
| "exclude_build_matrix_pairs": [], | ||
| "dist": ["ubuntu22.04", "ubuntu24.04", "ubuntu26.04"], | ||
| "lts_kernel": ["5.15", "6.8", "7.0"], | ||
| "exclude_build_matrix_pairs": [ | ||
| { "dist": "ubuntu26.04", "driver_branch": "580" } | ||
| ], | ||
| "exclude_precompiled_build_matrix": [ | ||
| { "dist": "ubuntu26.04", "driver_branch": "580" }, | ||
| { "lts_kernel": "5.15", "dist": "ubuntu24.04" }, | ||
| { "lts_kernel": "7.0", "dist": "ubuntu24.04" }, | ||
| { "lts_kernel": "5.15", "dist": "ubuntu26.04" }, | ||
| { "lts_kernel": "6.8", "dist": "ubuntu26.04" }, | ||
| { "lts_kernel": "7.0", "dist": "ubuntu22.04" }, | ||
| { "flavor": "azure-fde", "dist": "ubuntu22.04" } | ||
| ], | ||
| "exclude_precompiled_e2e_matrix": [ | ||
| { "lts_kernel": "5.15", "dist": "ubuntu24.04" } | ||
| { "lts_kernel": "5.15", "dist": "ubuntu24.04" }, | ||
| { "lts_kernel": "7.0", "dist": "ubuntu24.04" }, | ||
| { "lts_kernel": "5.15", "dist": "ubuntu26.04" }, | ||
| { "lts_kernel": "6.8", "dist": "ubuntu26.04" }, | ||
| { "lts_kernel": "7.0", "dist": "ubuntu22.04" } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| ARG BASE_IMAGE=ubuntu:resolute-20260421 | ||
| FROM ${BASE_IMAGE} | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| ARG BASE_URL=https://us.download.nvidia.com/tesla | ||
| ARG TARGETARCH | ||
| ENV TARGETARCH=$TARGETARCH | ||
| ARG DRIVER_BRANCH=595 | ||
| ENV DRIVER_BRANCH=$DRIVER_BRANCH | ||
| ARG DRIVER_VERSION=595.71.05 | ||
| ENV DRIVER_VERSION=$DRIVER_VERSION | ||
|
|
||
| ARG KERNEL_VERSION=7.0.0-12-generic | ||
| ENV KERNEL_VERSION=$KERNEL_VERSION | ||
|
|
||
| ENV NVIDIA_VISIBLE_DEVICES=void | ||
|
|
||
| RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections | ||
|
|
||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| apt-utils \ | ||
| build-essential \ | ||
| ca-certificates \ | ||
| curl \ | ||
| kmod \ | ||
| file \ | ||
| libelf-dev \ | ||
| libglvnd-dev \ | ||
| pkg-config && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Fetch GPG keys for CUDA repo | ||
| RUN rm -f /etc/apt/sources.list.d/cuda* && \ | ||
| curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2604/x86_64/cuda-keyring_1.1-1_all.deb -o cuda-keyring_1.1-1_all.deb && \ | ||
| dpkg -i cuda-keyring_1.1-1_all.deb && \ | ||
| rm -f cuda-keyring_1.1-1_all.deb | ||
|
|
||
| RUN usermod -o -u 0 -g 0 _apt | ||
|
|
||
| # Install / upgrade packages here that are required to resolve CVEs | ||
| ARG CVE_UPDATES | ||
| RUN if [ -n "${CVE_UPDATES}" ]; then \ | ||
| apt-get update && apt-get --only-upgrade -y install ${CVE_UPDATES} && \ | ||
| rm -rf /var/lib/apt/lists/*; \ | ||
| fi | ||
|
|
||
| COPY ubuntu26.04/precompiled/nvidia-driver /usr/local/bin | ||
|
|
||
| ADD ubuntu26.04/precompiled/local-repo.sh /tmp | ||
|
|
||
| RUN mkdir -p /usr/local/repos && \ | ||
| /tmp/local-repo.sh download_driver_package_deps && \ | ||
| /tmp/local-repo.sh build_local_apt_repo && \ | ||
| /tmp/local-repo.sh fetch_nvidia_installer && \ | ||
| # Remove all other ubuntu apt sources to ensure we only pull from the local apt repo | ||
| rm /etc/apt/sources.list.d/* | ||
|
|
||
| WORKDIR /drivers | ||
|
|
||
| ENTRYPOINT ["nvidia-driver", "init"] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these still needed for the latest images?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's safety net for us.
Ubuntu base images have shipped with outdated openssl, curl/libc6, and gnupg2 before for 22.04/24.04.
The same will most likely happen with 26.04.