代码拉取完成,页面将自动刷新
# Copyright (C) 2021 Jingli Chen (Wine93), NetEase Inc.
.PHONY: list build dep ci-list ci-build ci-dep install image playground check test docker format
stor?=""
prefix?= "$(PWD)/projects"
release?= 0
dep?= 0
only?= "*"
tag?= "curvebs:unknown"
case?= "*"
os?= "debian11"
ci?=0
define help_msg
## build curvebs
make build stor=bs dep=1
make dep stor=bs && make build stor=bs
## build curvefs
make build stor=fs dep=1
make dep stor=fs && make build stor=fs
## list
Usage:
make list stor=bs/fs
Examples:
make list stor=bs
## build
Usage:
make build stor=bs/fs only=TARGET1,...,TARGETx dep=0/1 release=0/1 os=OS
Examples:
make build stor=bs only=//src/chunkserver:chunkserver
make build stor=bs only=src/*,test/* dep=0
make build stor=fs only=test/* os=debian11
make build stor=fs release=1
Note:
Extra build options can be specified using BUILD_OPTS environment variable, which will be passed to bazel build command.
## dep
## configure dependency(before build)
Usage:
make dep stor=bs/fs
Examples:
make dep stor=bs
## ci-list/build/dep
## use the same way above, but in the container
## install
Usage:
make install stor=bs/fs prefix=PREFIX only=TARGET
Examples:
make install stor=bs prefix=/usr/local/curvebs only=*
make install stor=bs prefix=/usr/local/curvebs only=chunkserver
make install stor=fs prefix=/usr/local/curvefs only=etcd
## image
Usage:
make image stor=bs/fs tag=TAG os=OS
Examples:
make image stor=bs tag=opencurvedocker/curvebs:v1.2 os=debian11
## package
Usage:
make <tar|deb> release=0/1 dep=0/1 os=OS
Examples:
make deb
make tar release=1 dep=1 os=debian11
## playground
## create/run a container, changes outside will be mapped into the container
Usage/Example:
make playground
endef
export help_msg
help:
@echo "$$help_msg"
list:
@bash util/build.sh --stor=$(stor) --list
build:
@bash util/build.sh --stor=$(stor) --only=$(only) --dep=$(dep) --release=$(release) --ci=$(ci) --os=$(os)
dep:
@bash util/build.sh --stor=$(stor) --only="" --dep=1
ci-list:
@bash util/build_in_image.sh --stor=$(stor) --list
ci-build:
@bash util/build_in_image.sh --stor=$(stor) --only=$(only) --dep=$(dep) --release=$(release) --ci=$(ci) --os=$(os)
ci-dep:
@bash util/build_in_image.sh --stor=$(stor) --only="" --dep=1
install:
@bash util/install.sh --stor=$(stor) --prefix=$(prefix) --only=$(only)
image:
@bash util/image.sh $(stor) $(tag) $(os)
tar deb:
@RELEASE=$(release) DEP=$(dep) OS=$(os) bash util/package.sh $@
playground:
@bash util/playground.sh --version=$(version)
check:
@bash util/check.sh $(stor)
test:
@bash util/test.sh $(stor) $(only)
docker:
@bash util/docker.sh --os=$(os) --ci=$(ci)
init-hadoop:
@bash util/init-hadoop.sh
sdk:
@bash util/sdk.sh
clean:
@bash util/clean.sh
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。