From 98afe0d27af6fdd4fd5ce0d0b4b493a7bb9f0d4e Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 10 Feb 2023 16:55:10 +0100 Subject: [PATCH] Generate nvidia-container-toolkit-operator-extensions package Signed-off-by: Evan Lezar --- packaging/debian/control | 6 ++++++ .../debian/nvidia-container-toolkit-base.install | 1 - ...a-container-toolkit-operator-extensions.install | 2 ++ packaging/rpm/SPECS/nvidia-container-toolkit.spec | 14 +++++++++++++- 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 packaging/debian/nvidia-container-toolkit-operator-extensions.install diff --git a/packaging/debian/control b/packaging/debian/control index fe42428b..c43cbcbd 100644 --- a/packaging/debian/control +++ b/packaging/debian/control @@ -23,3 +23,9 @@ Breaks: nvidia-container-runtime (<= 3.5.0-1), nvidia-container-runtime-hook, nv Replaces: nvidia-container-runtime (<= 3.5.0-1), nvidia-container-runtime-hook Description: NVIDIA Container Toolkit Base Provides tools such as the NVIDIA Container Runtime and NVIDIA Container Toolkit CLI to enable GPU support in containers. + +Package: nvidia-container-toolkit-operator-extensions +Architecture: any +Depends: ${misc:Depends}, nvidia-container-toolkit-base (= @VERSION@) +Description: NVIDIA Container Toolkit Operator Extensions + Provides tools for using the NVIDIA Container Toolkit with the GPU Operator diff --git a/packaging/debian/nvidia-container-toolkit-base.install b/packaging/debian/nvidia-container-toolkit-base.install index 83b9d28b..3b183ed2 100644 --- a/packaging/debian/nvidia-container-toolkit-base.install +++ b/packaging/debian/nvidia-container-toolkit-base.install @@ -1,4 +1,3 @@ config.toml /etc/nvidia-container-runtime nvidia-container-runtime /usr/bin -nvidia-container-runtime.cdi /usr/bin nvidia-ctk /usr/bin diff --git a/packaging/debian/nvidia-container-toolkit-operator-extensions.install b/packaging/debian/nvidia-container-toolkit-operator-extensions.install new file mode 100644 index 00000000..4c4729ef --- /dev/null +++ b/packaging/debian/nvidia-container-toolkit-operator-extensions.install @@ -0,0 +1,2 @@ +nvidia-container-runtime.cdi /usr/bin +nvidia-container-runtime.legacy /usr/bin \ No newline at end of file diff --git a/packaging/rpm/SPECS/nvidia-container-toolkit.spec b/packaging/rpm/SPECS/nvidia-container-toolkit.spec index 040d2674..a4ea15bf 100644 --- a/packaging/rpm/SPECS/nvidia-container-toolkit.spec +++ b/packaging/rpm/SPECS/nvidia-container-toolkit.spec @@ -100,6 +100,18 @@ Provides tools such as the NVIDIA Container Runtime and NVIDIA Container Toolkit %license LICENSE %config /etc/nvidia-container-runtime/config.toml %{_bindir}/nvidia-container-runtime +%{_bindir}/nvidia-ctk + +# The OPERATOR EXTENSIONS package consists of components that are required to enable GPU support in Kubernetes. +# This package is not distributed as part of the NVIDIA Container Toolkit RPMs. +%package operator-extensions +Summary: NVIDIA Container Toolkit Operator Extensions +Requires: nvidia-container-toolkit-base == %{version}-%{release} + +%description operator-extensions +Provides tools for using the NVIDIA Container Toolkit with the GPU Operator + +%files operator-extensions +%license LICENSE %{_bindir}/nvidia-container-runtime.cdi %{_bindir}/nvidia-container-runtime.legacy -%{_bindir}/nvidia-ctk