diff --git a/deployments/container/Dockerfile.ubi8 b/deployments/container/Dockerfile.ubi8 deleted file mode 100644 index 61a2a1990..000000000 --- a/deployments/container/Dockerfile.ubi8 +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright (c) 2019-2025, NVIDIA CORPORATION. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -ARG GOLANG_VERSION=1.23.1 -ARG CUDA_IMAGE=cuda -ARG CUDA_VERSION=11.8.0 -ARG BASE_DIST=ubi8 -FROM --platform=${TARGETARCH} nvcr.io/nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build - -RUN yum install -y \ - wget make git gcc \ - && \ - rm -rf /var/cache/yum/* - -ARG TARGETARCH -ARG GOLANG_VERSION=x.x.x -RUN wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${TARGETARCH}.tar.gz \ - | tar -C /usr/local -xz - -ENV GOPATH /go -ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH - -WORKDIR /build -COPY . . - -RUN mkdir /artifacts -ARG VERSION="N/A" -ARG GIT_COMMIT="unknown" -RUN make PREFIX=/artifacts cmds - -FROM nvcr.io/nvidia/${CUDA_IMAGE}:${CUDA_VERSION}-base-${BASE_DIST} - -ENV NVIDIA_DISABLE_REQUIRE="true" -ENV NVIDIA_VISIBLE_DEVICES=all -ENV NVIDIA_DRIVER_CAPABILITIES=utility - -LABEL io.k8s.display-name="NVIDIA DRA Driver" -LABEL name="NVIDIA DRA Driver" -LABEL vendor="NVIDIA" -ARG VERSION="N/A" -ARG GIT_COMMIT="unknown" -LABEL version=${VERSION} -LABEL com.nvidia.git-commit="${GIT_COMMIT}" -LABEL release="N/A" -LABEL summary="NVIDIA DRA driver for Kubernetes" -LABEL description="See summary" -LABEL org.opencontainers.image.description "NVIDIA GPU DRA driver for Kubernetes" - -RUN mkdir /licenses && mv /NGC-DL-CONTAINER-LICENSE /licenses/NGC-DL-CONTAINER-LICENSE - -COPY --from=build /artifacts/compute-domain-controller /usr/bin/compute-domain-controller -COPY --from=build /artifacts/compute-domain-kubelet-plugin /usr/bin/compute-domain-kubelet-plugin -COPY --from=build /artifacts/gpu-kubelet-plugin /usr/bin/gpu-kubelet-plugin -COPY --from=build /build/templates /templates - -# Install / upgrade packages here that are required to resolve CVEs -ARG CVE_UPDATES -RUN if [ -n "${CVE_UPDATES}" ]; then \ - yum update -y ${CVE_UPDATES} && \ - rm -rf /var/cache/yum/*; \ - fi