forked from pingcap/tiflow
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.engine
54 lines (42 loc) · 2.67 KB
/
Makefile.engine
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
### Makefile for engine.
### This is used for some trivial commands, like 'Deployment', 'Image'
engine_image:
@which docker || (echo "docker not found in ${PATH}"; exit 1)
./engine/test/utils/run_engine.sh build
engine_image_amd64:
@which docker || (echo "docker not found in ${PATH}"; exit 1)
GOOS=linux GOARCH=amd64 $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/tiflow ./cmd/tiflow/main.go
GOOS=linux GOARCH=amd64 $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/tiflow-chaos-case ./engine/chaos/cases
docker build --platform linux/amd64 -f ./deployments/engine/docker/dev.Dockerfile -t dataflow:test ./
engine_image_arm64:
@which docker || (echo "docker not found in ${PATH}"; exit 1)
GOOS=linux GOARCH=arm64 $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/tiflow ./cmd/tiflow/main.go
GOOS=linux GOARCH=arm64 $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/tiflow-chaos-case ./engine/chaos/cases
docker build --platform linux/arm64 -f ./deployments/engine/docker/dev.Dockerfile -t dataflow:test ./
engine_image_from_local:
@which docker || (echo "docker not found in ${PATH}"; exit 1)
./engine/test/utils/run_engine.sh build-local
engine_deploy_1master1executor_env:
@which docker || (echo "docker not found in ${PATH}"; exit 1)
./engine/test/utils/run_engine.sh deploy ./deployments/engine/docker-compose/1m1e.yaml
engine_stop_1master1executor_env:
@which docker || (echo "docker not found in ${PATH}"; exit 1)
./engine/test/utils/run_engine.sh stop ./deployments/engine/docker-compose/1m1e.yaml
engine_deploy_3masters3executors_env:
@which docker || (echo "docker not found in ${PATH}"; exit 1)
./engine/test/utils/run_engine.sh deploy ./deployments/engine/docker-compose/3m3e.yaml
engine_stop_3masters3executors_env:
@which docker || (echo "docker not found in ${PATH}"; exit 1)
./engine/test/utils/run_engine.sh stop ./deployments/engine/docker-compose/3m3e.yaml
engine_deploy_1master1executor1dm_env:
@which docker || (echo "docker not found in ${PATH}"; exit 1)
./engine/test/utils/run_engine.sh deploy ./deployments/engine/docker-compose/1m1e.yaml ./deployments/engine/docker-compose/dm_databases.yaml
engine_stop_1master1executor1dm_env:
@which docker || (echo "docker not found in ${PATH}"; exit 1)
./engine/test/utils/run_engine.sh stop ./deployments/engine/docker-compose/1m1e.yaml ./deployments/engine/docker-compose/dm_databases.yaml
engine_deploy_monitor_env:
@which docker || (echo "docker not found in ${PATH}"; exit 1)
./engine/test/utils/run_engine.sh deploy ./deployments/engine/docker-compose/1prometheus.yaml
engine_stop_monitor_env:
@which docker || (echo "docker not found in ${PATH}"; exit 1)
./engine/test/utils/run_engine.sh stop ./deployments/engine/docker-compose/1prometheus.yaml