diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 232b4f31d..c7bc22b37 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -123,7 +123,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - dist: [ubi8] + dist: [ubi9] steps: - uses: actions/checkout@v4 name: Check out code @@ -168,7 +168,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - dist: [ubi8] + dist: [ubi9] steps: - uses: actions/checkout@v4 name: Check out code @@ -237,9 +237,9 @@ jobs: LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}') echo "LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}')" >> $GITHUB_ENV - echo "OPERATOR_VERSION=${COMMIT_SHORT_SHA}-ubi8" >> $GITHUB_ENV + echo "OPERATOR_VERSION=${COMMIT_SHORT_SHA}-ubi9" >> $GITHUB_ENV echo "OPERATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator" >> $GITHUB_ENV - echo "VALIDATOR_VERSION=${COMMIT_SHORT_SHA}-ubi8" >> $GITHUB_ENV + echo "VALIDATOR_VERSION=${COMMIT_SHORT_SHA}-ubi9" >> $GITHUB_ENV echo "VALIDATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator/gpu-operator-validator" >> $GITHUB_ENV echo "instance_hostname=ubuntu@${{ steps.get_public_dns_name.outputs.result }}" >> $GITHUB_ENV @@ -289,9 +289,9 @@ jobs: LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}') echo "LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}')" >> $GITHUB_ENV - echo "OPERATOR_VERSION=${COMMIT_SHORT_SHA}-ubi8" >> $GITHUB_ENV + echo "OPERATOR_VERSION=${COMMIT_SHORT_SHA}-ubi9" >> $GITHUB_ENV echo "OPERATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator" >> $GITHUB_ENV - echo "VALIDATOR_VERSION=${COMMIT_SHORT_SHA}-ubi8" >> $GITHUB_ENV + echo "VALIDATOR_VERSION=${COMMIT_SHORT_SHA}-ubi9" >> $GITHUB_ENV echo "VALIDATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator/gpu-operator-validator" >> $GITHUB_ENV echo "instance_hostname=ubuntu@${{ steps.get_public_dns_name.outputs.result }}" >> $GITHUB_ENV diff --git a/Makefile b/Makefile index 1cef3c463..51c602425 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ include $(CURDIR)/versions.mk MODULE := github.com/NVIDIA/gpu-operator BUILDER_IMAGE ?= golang:$(GOLANG_VERSION) -DIST ?= ubi8 +DIST ?= ubi9 ifeq ($(IMAGE_NAME),) REGISTRY ?= nvcr.io/nvidia/cloud-native @@ -252,8 +252,8 @@ coverage: unit-test go tool cover -func=$(COVERAGE_FILE).no-mocks ##### Public rules ##### -DISTRIBUTIONS := ubi8 -DEFAULT_PUSH_TARGET := ubi8 +DISTRIBUTIONS := ubi9 +DEFAULT_PUSH_TARGET := ubi9 PUSH_TARGETS := $(patsubst %,push-%, $(DISTRIBUTIONS)) BUILD_TARGETS := $(patsubst %,build-%, $(DISTRIBUTIONS)) diff --git a/docker/Dockerfile b/docker/Dockerfile index 2b9c07a37..dab6d1358 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,9 +14,9 @@ ARG GOLANG_VERSION=x.x.x -FROM nvcr.io/nvidia/cuda:12.6.0-base-ubi8 as builder +FROM nvcr.io/nvidia/cuda:12.6.0-base-ubi9 as builder -RUN yum install -y wget make git gcc +RUN dnf install -y wget make git gcc ARG GOLANG_VERSION=0.0.0 RUN set -eux; \ @@ -25,7 +25,7 @@ RUN set -eux; \ case "${arch##*-}" in \ x86_64 | amd64) ARCH='amd64' ;; \ ppc64el | ppc64le) ARCH='ppc64le' ;; \ - aarch64) ARCH='arm64' ;; \ + aarch64 | arm64) ARCH='arm64' ;; \ *) echo "unsupported architecture" ; exit 1 ;; \ esac; \ wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \ @@ -55,7 +55,7 @@ ARG VERSION="unknown" ARG GIT_COMMIT="unknown" RUN make gpu-operator -FROM nvcr.io/nvidia/cuda:12.6.0-base-ubi8 +FROM nvcr.io/nvidia/cuda:12.6.0-base-ubi9 # Remove CUDA libs(compat etc) in favor of libs installed by the NVIDIA driver RUN dnf remove -y cuda-* @@ -97,7 +97,7 @@ COPY deployments/gpu-operator/charts/node-feature-discovery/crds/nfd-api-crds.ya # Install / upgrade packages here that are required to resolve CVEs ARG CVE_UPDATES RUN if [ -n "${CVE_UPDATES}" ]; then \ - yum update -y ${CVE_UPDATES} && \ + dnf update -y ${CVE_UPDATES} && \ rm -rf /var/cache/yum/*; \ fi diff --git a/validator/Dockerfile b/validator/Dockerfile index 2582663b6..b24f77a31 100644 --- a/validator/Dockerfile +++ b/validator/Dockerfile @@ -15,9 +15,9 @@ ARG CUDA_SAMPLE_IMAGE=undefined ARG GOLANG_VERSION=x.x.x -FROM nvcr.io/nvidia/cuda:12.6.0-base-ubi8 as build +FROM nvcr.io/nvidia/cuda:12.6.0-base-ubi9 as build -RUN yum install -y wget make git gcc +RUN dnf install -y wget make git gcc ARG GOLANG_VERSION=0.0.0 RUN set -eux; \ @@ -26,7 +26,7 @@ RUN set -eux; \ case "${arch##*-}" in \ x86_64 | amd64) ARCH='amd64' ;; \ ppc64el | ppc64le) ARCH='ppc64le' ;; \ - aarch64) ARCH='arm64' ;; \ + aarch64 | arm64) ARCH='arm64' ;; \ *) echo "unsupported architecture" ; exit 1 ;; \ esac; \ wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \ @@ -51,7 +51,7 @@ FROM ${CUDA_SAMPLE_IMAGE} AS sample-builder RUN mkdir /artifacts RUN cp /cuda-samples/vectorAdd /artifacts/vectorAdd -FROM nvcr.io/nvidia/cuda:12.6.0-base-ubi8 +FROM nvcr.io/nvidia/cuda:12.6.0-base-ubi9 # Remove CUDA libs(compat etc) in favor of libs installed by the NVIDIA driver RUN dnf remove -y cuda-* @@ -87,7 +87,7 @@ LABEL vsc-ref=${GIT_COMMIT} # Install / upgrade packages here that are required to resolve CVEs ARG CVE_UPDATES RUN if [ -n "${CVE_UPDATES}" ]; then \ - yum update -y ${CVE_UPDATES} && \ + dnf update -y ${CVE_UPDATES} && \ rm -rf /var/cache/yum/*; \ fi diff --git a/validator/Makefile b/validator/Makefile index ffe075adc..e4c1cc90a 100644 --- a/validator/Makefile +++ b/validator/Makefile @@ -41,8 +41,8 @@ OUT_IMAGE_TAG = $(OUT_IMAGE_VERSION)-$(DIST) OUT_IMAGE = $(OUT_IMAGE_NAME):$(OUT_IMAGE_TAG) ##### Public rules ##### -DISTRIBUTIONS := ubi8 ubuntu20.04 -DEFAULT_PUSH_TARGET := ubi8 +DISTRIBUTIONS := ubi9 +DEFAULT_PUSH_TARGET := ubi9 PUSH_TARGETS := $(patsubst %,push-%, $(DISTRIBUTIONS)) BUILD_TARGETS := $(patsubst %,build-%, $(DISTRIBUTIONS)) @@ -87,7 +87,7 @@ $(BUILD_TARGETS): build-%: --build-arg VERSION="$(VERSION)" \ --build-arg GIT_COMMIT="$(GIT_COMMIT)" \ --build-arg BUILDER_IMAGE="$(BUILDER_IMAGE)" \ - --build-arg CUDA_SAMPLE_IMAGE=nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda$(CUDA_SAMPLES_VERSION)-$(*) \ + --build-arg CUDA_SAMPLE_IMAGE=nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda$(CUDA_SAMPLES_VERSION)-ubi8 \ --build-arg GOLANG_VERSION="$(GOLANG_VERSION)" \ --build-arg CVE_UPDATES="$(CVE_UPDATES)" \ --file $(DOCKERFILE) $(BUILD_DIR)