Skip to content

Commit

Permalink
Merge pull request #28 from NVIDIA/dependabot-cuda-images
Browse files Browse the repository at this point in the history
Add dependabot config for updating CUDA base image
  • Loading branch information
cdesiniotis authored Jul 15, 2024
2 parents 526465c + e175cb7 commit 6acbddc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ updates:
exclude-patterns:
- k8s.io/klog/*

- package-ecosystem: "docker"
directory: "/deployments/container"
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
7 changes: 2 additions & 5 deletions deployments/container/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG CUDA_VERSION
ARG BASE_DIST

FROM nvcr.io/nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} AS build
FROM nvcr.io/nvidia/cuda:12.5.0-base-ubi8 AS build

WORKDIR /work

Expand Down Expand Up @@ -44,7 +41,7 @@ ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH

RUN GOOS=linux go build -o nvdrain ./cmd/nvdrain

FROM nvcr.io/nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST}
FROM nvcr.io/nvidia/cuda:12.5.0-base-ubi8

ARG TARGETARCH

Expand Down
2 changes: 0 additions & 2 deletions deployments/container/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ $(BUILD_TARGETS): build-%:
$(DOCKER_BUILD_OPTIONS) \
$(DOCKER_BUILD_PLATFORM_OPTIONS) \
--tag $(IMAGE) \
--build-arg BASE_DIST="$(DIST)" \
--build-arg GOLANG_VERSION="$(GOLANG_VERSION)" \
--build-arg CUDA_VERSION="$(CUDA_VERSION)" \
--build-arg VERSION="$(VERSION)" \
--build-arg CVE_UPDATES="$(CVE_UPDATES)" \
--file $(DOCKERFILE) \
Expand Down
1 change: 0 additions & 1 deletion versions.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ MODULE := github.com/NVIDIA/k8s-driver-manager

vVERSION := v$(VERSION:v%=%)

CUDA_VERSION := 12.5.0
GOLANG_VERSION ?= 1.22.5

BUILDIMAGE_TAG ?= devel-go$(GOLANG_VERSION)
Expand Down

0 comments on commit 6acbddc

Please sign in to comment.