Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lidongze0629 committed Sep 2, 2024
1 parent 66f692b commit f9cd9ad
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
7 changes: 7 additions & 0 deletions k8s/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ ARCH := $(subst x86_64,amd64,$(subst aarch64,arm64,$(PLATFORM)))

VERSION ?= latest
VINEYARD_VERSION ?= $(shell cat $(VINEYARD_VERSION_FILE))
# Use a dummy builder image (tag=ci, which is actually a busybox) to reduce time and space in CI workflow
BUILDER_VERSION ?= $(VINEYARD_VERSION)
PROFILE ?= release
CI ?= false
# Flex Coordinator
Expand Down Expand Up @@ -92,6 +94,7 @@ coordinator:
--target coordinator \
--build-arg ARCH=$(ARCH) \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
--build-arg VINEYARD_VERSION=$(VINEYARD_VERSION) \
--build-arg CI=${CI} \
-t graphscope/coordinator:${VERSION} \
Expand All @@ -103,6 +106,7 @@ analytical:
--target analytical \
--build-arg ARCH=$(ARCH) \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
--build-arg VINEYARD_VERSION=$(VINEYARD_VERSION) \
--build-arg CI=${CI} \
-t graphscope/analytical:${VERSION} \
Expand All @@ -114,6 +118,7 @@ analytical-java:
--target analytical-java \
--build-arg ARCH=$(ARCH) \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
--build-arg VINEYARD_VERSION=$(VINEYARD_VERSION) \
--build-arg CI=${CI} \
-t graphscope/analytical-java:${VERSION} \
Expand All @@ -125,6 +130,7 @@ interactive-frontend:
--target frontend \
--build-arg ARCH=$(ARCH) \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
--build-arg VINEYARD_VERSION=$(VINEYARD_VERSION) \
--build-arg profile=$(PROFILE) \
--build-arg CI=${CI} \
Expand All @@ -137,6 +143,7 @@ interactive-executor:
--target executor \
--build-arg ARCH=$(ARCH) \
--build-arg REGISTRY=$(REGISTRY) \
--build-arg BUILDER_VERSION=$(BUILDER_VERSION) \
--build-arg VINEYARD_VERSION=$(VINEYARD_VERSION) \
--build-arg profile=$(PROFILE) \
--build-arg CI=${CI} \
Expand Down
5 changes: 3 additions & 2 deletions k8s/dockerfiles/analytical.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

ARG ARCH=amd64
ARG REGISTRY=registry.cn-hongkong.aliyuncs.com
ARG BUILDER_VERSION=latest
ARG VINEYARD_VERSION=latest
############### BUILDER: ANALYTICAL #######################
FROM $REGISTRY/graphscope/graphscope-dev:$VINEYARD_VERSION-$ARCH AS builder
FROM $REGISTRY/graphscope/graphscope-dev:$BUILDER_VERSION-$ARCH AS builder

ARG CI=false

Expand Down Expand Up @@ -58,7 +59,7 @@ COPY ./k8s/dockerfiles/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

############### BUILDER: ANALYTICAL-JAVA #######################
FROM $REGISTRY/graphscope/graphscope-dev:$VINEYARD_VERSION-$ARCH AS builder-java
FROM $REGISTRY/graphscope/graphscope-dev:$BUILDER_VERSION-$ARCH AS builder-java

COPY --chown=graphscope:graphscope . /home/graphscope/GraphScope

Expand Down
3 changes: 2 additions & 1 deletion k8s/dockerfiles/coordinator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

ARG ARCH=amd64
ARG REGISTRY=registry.cn-hongkong.aliyuncs.com
ARG BUILDER_VERSION=latest
ARG VINEYARD_VERSION=latest
FROM $REGISTRY/graphscope/graphscope-dev:$VINEYARD_VERSION-$ARCH AS builder
FROM $REGISTRY/graphscope/graphscope-dev:$BUILDER_VERSION-$ARCH AS builder

ARG CI=false

Expand Down
3 changes: 2 additions & 1 deletion k8s/dockerfiles/interactive.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

ARG ARCH=amd64
ARG REGISTRY=registry.cn-hongkong.aliyuncs.com
ARG BUILDER_VERSION=latest
ARG VINEYARD_VERSION=latest
FROM $REGISTRY/graphscope/graphscope-dev:$VINEYARD_VERSION-$ARCH AS builder
FROM $REGISTRY/graphscope/graphscope-dev:$BUILDER_VERSION-$ARCH AS builder

ARG CI=false

Expand Down

0 comments on commit f9cd9ad

Please sign in to comment.