This repository was archived by the owner on Jan 27, 2026. It is now read-only.
forked from kubeflow/kubeflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 1.36 KB
/
Makefile
File metadata and controls
35 lines (28 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# This Makefile is templated, the following targets are provided:
# - Current Architecture:
# - docker-build: build the docker image
# - docker-build-dep: build the docker image (and any base images)
# - docker-push: push the docker image
# - docker-push-dep: push the docker image (and any base images)
# - Multi-Architecture:
# - docker-build-multi-arch: build the docker image
# - docker-build-multi-arch-dep: build the docker image (and any base images)
# - docker-build-push-multi-arch: build AND push the docker image
# - docker-build-push-multi-arch-dep: build AND push the docker image (and any base images)
#
GIT_COMMIT := $(shell git rev-parse HEAD)
GIT_TREE_STATE := $(shell test -n "`git status --porcelain`" && echo "-dirty" || echo "")
REGISTRY ?= docker.io/kubeflownotebookswg
TAG ?= sha-$(GIT_COMMIT)$(GIT_TREE_STATE)
IMAGE_NAME := base
BASE_IMAGE := nvidia/cuda:12.8.1-cudnn-devel-ubuntu22.04
BASE_IMAGE_FOLDERS :=
# we use a separate registry-type cache to keep the main registry clean
# https://docs.docker.com/build/cache/backends/
CACHE_IMAGE ?= ghcr.io/kubeflow/kubeflow/notebook-servers/build-cache
CACHE_TAG ?= $(IMAGE_NAME)
# https://docs.docker.com/engine/reference/commandline/buildx_build/#platform
ARCH ?= linux/amd64
# include build targets from common
include ../common.mk