-
Notifications
You must be signed in to change notification settings - Fork 425
/
Makefile
166 lines (143 loc) · 4.85 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
WORKING_DIR := $(dir $(MKFILE_PATH))
DOCKERFILES_DIR := $(WORKING_DIR)/dockerfiles
ifeq ($(REGISTRY),)
REGISTRY := registry.cn-hongkong.aliyuncs.com
endif
VERSION ?= latest
VINEYARD_VERSION ?= v0.15.0
# This is the version of builder base image in most cases, except for graphscope-dev
BUILDER_VERSION ?= $(VINEYARD_VERSION)
# This is the version of runtime base image
RUNTIME_VERSION ?= $(VINEYARD_VERSION)
PROFILE ?= release
CI ?= false
BUILD_PROGRESS = auto
.PHONY: all graphscope
# High order modules
.PHONY: coordinator analytical interactive learning graphscope-store
# Base images and develop images
.PHONY: graphscope-dev-base graphscope-dev vineyard-dev vineyard-runtime
# Low order modules
.PHONY: analytical analytical-java
.PHONY: interactive-frontend interactive-executor interactive-experimental
.PHONY: learning
# Target hierarchy
interactive: interactive-frontend interactive-executor
all: coordinator analytical interactive learning
graphscope: all
dev-wheel:
cd $(WORKING_DIR) && \
cp ../gs ./ && \
docker build \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg VINEYARD_VERSION=${VINEYARD_VERSION} \
-t graphscope/graphscope-dev:wheel \
-f $(DOCKERFILES_DIR)/manylinux2014.Dockerfile .
manylinux2014-ext:
cd $(WORKING_DIR) && \
cp ../gs ./ && \
docker build \
-t graphscope/manylinux2014:20230407-ext \
-f $(DOCKERFILES_DIR)/manylinux2014-ext.Dockerfile .
graphscope-dev:
cd $(WORKING_DIR) && \
cp ../gs ./ && \
docker build \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg VINEYARD_VERSION=${VINEYARD_VERSION} \
-t graphscope/graphscope-dev:${VINEYARD_VERSION} \
-f $(DOCKERFILES_DIR)/graphscope-dev.Dockerfile .
vineyard-dev:
cd $(WORKING_DIR) && \
cp ../gs ./ && \
docker build \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg VINEYARD_VERSION=${VINEYARD_VERSION} \
-t graphscope/vineyard-dev:${VINEYARD_VERSION} \
-f $(DOCKERFILES_DIR)/vineyard-dev.Dockerfile .
vineyard-runtime:
cd $(WORKING_DIR) && \
docker build \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
-t graphscope/vineyard-runtime:${VINEYARD_VERSION} \
-f $(DOCKERFILES_DIR)/vineyard-runtime.Dockerfile .
coordinator:
cd $(WORKING_DIR)/.. && \
docker build \
--target coordinator \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
--build-arg CI=${CI} \
-t graphscope/coordinator:${VERSION} \
-f $(DOCKERFILES_DIR)/coordinator.Dockerfile .
analytical:
cd $(WORKING_DIR)/.. && \
docker build \
--target analytical \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
--build-arg RUNTIME_VERSION=$(RUNTIME_VERSION) \
--build-arg CI=${CI} \
-t graphscope/analytical:${VERSION} \
-f $(DOCKERFILES_DIR)/analytical.Dockerfile .
analytical-java:
cd $(WORKING_DIR)/.. && \
docker build \
--target analytical-java \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
--build-arg RUNTIME_VERSION=$(RUNTIME_VERSION) \
--build-arg CI=${CI} \
-t graphscope/analytical-java:${VERSION} \
-f $(DOCKERFILES_DIR)/analytical.Dockerfile .
interactive-frontend:
cd $(WORKING_DIR)/.. && \
docker build \
--target frontend \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
--build-arg RUNTIME_VERSION=$(RUNTIME_VERSION) \
--build-arg profile=$(PROFILE) \
--build-arg CI=${CI} \
-t graphscope/interactive-frontend:${VERSION} \
-f $(DOCKERFILES_DIR)/interactive.Dockerfile .
interactive-executor:
cd $(WORKING_DIR)/.. \
&& docker build \
--target executor \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
--build-arg RUNTIME_VERSION=$(RUNTIME_VERSION) \
--build-arg profile=$(PROFILE) \
--build-arg CI=${CI} \
-t graphscope/interactive-executor:${VERSION} \
-f $(DOCKERFILES_DIR)/interactive.Dockerfile .
# gie with experimental storage
interactive-experimental:
cd $(WORKING_DIR)/.. && \
docker build \
--target experimental \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
-t graphscope/interactive-experimental:${VERSION} \
-f $(DOCKERFILES_DIR)/interactive-experimental.Dockerfile .
learning:
cd $(WORKING_DIR)/.. && \
docker build \
--target learning \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
--build-arg RUNTIME_VERSION=$(RUNTIME_VERSION) \
--build-arg CI=${CI} \
-t graphscope/learning:${VERSION} \
-f $(DOCKERFILES_DIR)/learning.Dockerfile .
graphscope-store:
cd $(WORKING_DIR)/.. && \
docker build \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
--build-arg profile=${PROFILE} \
-t graphscope/graphscope-store:${VERSION} \
-f $(DOCKERFILES_DIR)/graphscope-store.Dockerfile .