-
Notifications
You must be signed in to change notification settings - Fork 311
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
update base image to the ubi9 variant #937
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' ;; \ | ||
cdesiniotis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
*) 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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In general, I would recommend removing this block entirely. We have largely stopped using this envvar across our projects -- especially since we've streamlined our waiver process. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, agreed . I think this block was added as a stopgap to quickly fix CVEs at the time There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can make this change in a follow up PR |
||
RUN if [ -n "${CVE_UPDATES}" ]; then \ | ||
yum update -y ${CVE_UPDATES} && \ | ||
dnf update -y ${CVE_UPDATES} && \ | ||
cdesiniotis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
rm -rf /var/cache/yum/*; \ | ||
fi | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here on removing the block. |
||
RUN if [ -n "${CVE_UPDATES}" ]; then \ | ||
yum update -y ${CVE_UPDATES} && \ | ||
dnf update -y ${CVE_UPDATES} && \ | ||
rm -rf /var/cache/yum/*; \ | ||
fi | ||
|
||
|
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.
Note: Since we only provide one flavour of image we could just drop the
-ubi9
suffix.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.
Agreed. I am assuming there is a rationale behind the ubi8 suffix? If it's safe enough to drop it, I am all for the change
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.
@cdesiniotis @shivamerla thoughts on this?
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.
yeah, safe to drop
ubi
suffix as we don't reference those tags in the Helm charts or OLM.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.
@elezar Looks like I'll have to make changes in multiple places to drop the DIST suffix. I'd like to make that change in a follow-up PR.
I'd like to limit the changeset to ubi9 upgrade in this PR