forked from databendlabs/databend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (50 loc) · 1.76 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
HUB ?= datafuselabs
TAG ?= latest
PLATFORM ?= linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
# Setup dev toolchain
setup:
bash ./scripts/setup/dev_setup.sh
run: build
bash ./scripts/deploy/fusequery-standalone.sh release
run-debug: build-debug
bash ./scripts/deploy/fusequery-standalone.sh
run-release:
bash ./scripts/deploy/fusequery-standalone-from-release.sh
build:
bash ./scripts/build/build-native.sh
build-debug:
bash ./scripts/build/build-debug.sh
unit-test:
bash ./scripts/ci/ci-run-unit-tests.sh
stateless-test:
bash ./scripts/build/build-debug.sh
bash ./scripts/ci/ci-run-stateless-tests.sh
stateless-cluster-test:
bash ./scripts/build/build-debug.sh
bash ./scripts/ci/ci-run-stateless-tests-cluster.sh
test: unit-test stateless-test
fmt:
cargo fmt
lint:
cargo fmt
cargo clippy -- -D warnings
miri:
cargo miri setup
MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test
docker:
docker build --network host -f docker/Dockerfile -t ${HUB}/fuse-query:${TAG} .
# experiment feature: take a look at docker/README.md for detailed multi architecture image build support
dockerx:
docker buildx build . -f ./docker/Dockerfile --platform ${PLATFORM} --allow network.host --builder host -t ${HUB}/fuse-query:${TAG} --push
perf-tool:
docker build --network host -f docker/perf-tool/Dockerfile -t ${HUB}/perf-tool:${TAG} .
run-helm:
helm upgrade --install datafuse ./charts/datafuse \
--set image.repository=${HUB}/fuse-query --set image.tag=${TAG} --set configs.mysqlPort=3308
profile:
bash ./scripts/ci/ci-run-profile.sh
clean:
cargo clean
docker_release:
docker buildx build . -f ./docker/release/Dockerfile --platform ${PLATFORM} --allow network.host --builder host -t ${HUB}/datafuse:${TAG} --push
.PHONY: setup test run build fmt lint docker clean