-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
92 lines (75 loc) · 3.12 KB
/
Makefile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
TOPDIR := $(shell git rev-parse --show-toplevel)
BASE_VER ?= v1.3.0
BUILD_ID ?= $(shell git describe --always --dirty)
VERSION := $(BASE_VER)-$(BUILD_ID)
export REPO := ezkf
REGISTRY ?= lr1-bd-harbor-registry.mip.storage.hpecorp.net/develop
EZKF_REGISTRY ?= $(REGISTRY)/$(REPO)
docker-build:
@echo "Building JupyterLab images..."
$(foreach target, base jupyter, \
docker build \
--build-arg="BASE_IMG=$(EZKF_REGISTRY)/base:$(VERSION)" \
-t $(EZKF_REGISTRY)/$(target):$(VERSION) \
-f $(TOPDIR)/dockerfiles/notebooks/$(target)/Dockerfile \
$(TOPDIR)/dockerfiles/notebooks/$(target); \
)
@echo "Building the images for the Question-Answering demo..."
$(foreach target, app llm transformer vectorstore, \
docker build \
-t $(EZKF_REGISTRY)/qna-$(target):$(VERSION) \
-f $(TOPDIR)/demos/rag-demos/question-answering/dockerfiles/$(target)/Dockerfile \
$(TOPDIR)/demos/rag-demos/question-answering/dockerfiles/$(target); \
)
@echo "Building the images for the Question-Answering GPU demo..."
$(foreach target, app transformer vectorstore triton-inference-server, \
docker build \
-t $(EZKF_REGISTRY)/qna-$(target)-gpu:$(VERSION) \
-f $(TOPDIR)/demos/rag-demos/question-answering-gpu/dockerfiles/$(target)/Dockerfile \
$(TOPDIR)/demos/rag-demos/question-answering-gpu/dockerfiles/$(target); \
)
@echo "Building the images for the Fraud Detection demo..."
docker build \
-t $(EZKF_REGISTRY)/fraud-detection-app:$(VERSION) \
-f $(TOPDIR)/demos/fraud-detection/dockerfiles/app/Dockerfile \
$(TOPDIR)/demos/fraud-detection/dockerfiles/app
docker-push:
@echo "Pushing JupyterLab images..."
$(foreach target, base jupyter, \
docker push $(EZKF_REGISTRY)/$(target):$(VERSION); \
)
@echo "Pushing the images for the Question-Answering demo..."
$(foreach target, app llm transformer vectorstore, \
docker push $(EZKF_REGISTRY)/qna-$(target):$(VERSION); \
)
@echo "Pushing the images for the Question-Answering GPU demo..."
$(foreach target, app transformer vectorstore triton-inference-server, \
docker push $(EZKF_REGISTRY)/qna-$(target)-gpu:$(VERSION); \
)
@echo "Pushing the images for the Fraud Detection demo..."
docker push $(EZKF_REGISTRY)/fraud-detection-app:$(VERSION)
################################################################################
# Pipeline API #
################################################################################
version:
@echo $(VERSION)
deliverables:
@echo
dependencies:
@echo
test:
@echo
.PHONY: images
images:
@echo $(EZKF_REGISTRY)/base:$(VERSION)
@echo $(EZKF_REGISTRY)/jupyter:$(VERSION)
@echo $(EZKF_REGISTRY)/qna-app:$(VERSION)
@echo $(EZKF_REGISTRY)/qna-llm:$(VERSION)
@echo $(EZKF_REGISTRY)/qna-transformer:$(VERSION)
@echo $(EZKF_REGISTRY)/qna-vectorstore:$(VERSION)
@echo $(EZKF_REGISTRY)/qna-app-gpu:$(VERSION)
@echo $(EZKF_REGISTRY)/qna-transformer-gpu:$(VERSION)
@echo $(EZKF_REGISTRY)/qna-vectorstore-gpu:$(VERSION)
@echo $(EZKF_REGISTRY)/qna-triton-inference-server-gpu:$(VERSION)
@echo $(EZKF_REGISTRY)/fraud-detection-app:$(VERSION)
release: docker-build docker-push