Skip to content

Use single image for deb and rpm-based systems #602

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elezar
Copy link
Member

@elezar elezar commented Jul 12, 2024

This change moves to a single ubi8-based base image for the NVIDIA Container Toolkit contianer. This simplifies the deployment of the toolkit in that users don't have to select a specific image based on their host distribution.

In this implementation, the contents of the deb and rpm packages are stored at a location in the image and copied to the relevant location on the host (as in the past). The following envvironment variables can be used to control the behaviour:

  • TOOLKIT_PACKAGE_TYPE (one of auto (default), deb, or rpm) specifies the packaging system used on the host machine. If this is default, the toolking installer attempts to determine the host packaging system and defaults to deb if this fails.
  • TOOLKIT_SOURCE_ROOT (default = "") specifies the root for the files to be installed. If this is set to "" the path is calculated as /artifacts/{{ .ToolkitPackageType }} where ToolkitPackageType is the resolved value of TOOLKIT_PACKAGE_TYPE.

@elezar elezar changed the title TOFIX: packages in image Allow single image to be used for deb and rpm-based systems Aug 28, 2024
@elezar elezar force-pushed the use-ubi8-image branch 5 times, most recently from 4242ba2 to 5d42fbb Compare September 4, 2024 13:39
@elezar elezar force-pushed the use-ubi8-image branch 2 times, most recently from 4da1db4 to ba65c11 Compare March 17, 2025 09:38
@elezar elezar changed the title Allow single image to be used for deb and rpm-based systems Use single image for deb and rpm-based systems Apr 17, 2025
@elezar elezar force-pushed the use-ubi8-image branch 2 times, most recently from b0c19ee to 496c680 Compare April 17, 2025 14:21
This change swithces to using a single image for the NVIDIA Container Toolkit contianer.
Here the contents of the architecture-specific deb and rpm packages are extracted
to a known root. These contents can then be installed using the updated installation
mechanism which has been updated to detect the source root based on the packaging type.

Signed-off-by: Evan Lezar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant