File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 6161 env :
6262 IMAGE_NAME : ghcr.io/${LOWERCASE_REPO_OWNER}/k8s-device-plugin
6363 VERSION : ${COMMIT_SHORT_SHA}
64+ CVE_UPDATES : " libarchive"
6465 run : |
6566 echo "${VERSION}"
6667 make -f deployments/container/Makefile build
Original file line number Diff line number Diff line change @@ -53,6 +53,13 @@ RUN rpm -qa | sort -u > /tmp/package-list.minimal
5353# We define the following image as a base image and remove unneeded packages.
5454FROM nvcr.io/nvidia/cuda:13.0.0-base-ubi9 AS base
5555
56+ # Upgrade packages here that are required to resolve CVEs
57+ ARG CVE_UPDATES
58+ RUN if [ -n "${CVE_UPDATES}" ]; then \
59+ yum update -y ${CVE_UPDATES} && \
60+ rm -rf /var/cache/yum/*; \
61+ fi
62+
5663WORKDIR /cleanup
5764
5865COPY --from=minimal /tmp/package-names.minimal package-names.minimal
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ $(IMAGE_TARGETS): image-%:
8282 --build-arg GOLANG_VERSION=" $( GOLANG_VERSION) " \
8383 --build-arg VERSION=" $( VERSION) " \
8484 --build-arg GIT_COMMIT=" $( GIT_COMMIT) " \
85+ --build-arg CVE_UPDATES=" $( CVE_UPDATES) " \
8586 $(if $(LABEL_IMAGE_SOURCE ) ,--label "org.opencontainers.image.source=$(LABEL_IMAGE_SOURCE ) ",) \
8687 -f $(DOCKERFILE ) \
8788 $(CURDIR )
You can’t perform that action at this time.
0 commit comments