Skip to content

Commit

Permalink
Merge pull request #695 from kwozyman/rpm-args
Browse files Browse the repository at this point in the history
Add support for changing Vendor and Buildhost for the driver RPM
  • Loading branch information
rhatdan authored Jul 25, 2024
2 parents 7df349f + 57a9745 commit f6ed0b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions training/nvidia-bootc/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ ARG TARGET_ARCH=''

ARG DRIVER_VERSION='550.90.07'

ARG VENDOR=''
ARG RPM_HOST=''

USER builder

WORKDIR /home/builder
Expand Down Expand Up @@ -63,6 +66,8 @@ RUN if [ "${KERNEL_VERSION}" == "" ]; then \
--define "kernel_dist ${KDIST}" \
--define "driver ${DRIVER_VERSION}" \
--define "driver_branch ${DRIVER_STREAM}" \
--define "vendor ${VENDOR:-undefined}" \
--define "_buildhost ${RPM_HOST:-${HOSTNAME}}" \
-v -bb SPECS/kmod-nvidia.spec

FROM ${BASEIMAGE}
Expand Down

0 comments on commit f6ed0b3

Please sign in to comment.