github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/Makefile.engine (about)

     1  ### Makefile for engine. 
     2  ### This is used for some trivial commands, like 'Deployment', 'Image'
     3  
     4  engine_image:
     5  	@which docker || (echo "docker not found in ${PATH}"; exit 1)
     6  	./engine/test/utils/run_engine.sh build
     7  
     8  engine_image_amd64: 
     9  	@which docker || (echo "docker not found in ${PATH}"; exit 1)
    10  	GOOS=linux GOARCH=amd64 $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/tiflow ./cmd/tiflow/main.go
    11  	GOOS=linux GOARCH=amd64 $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/tiflow-chaos-case ./engine/chaos/cases
    12  	docker build --platform linux/amd64 -f ./deployments/engine/docker/dev.Dockerfile -t dataflow:test ./ 
    13  
    14  engine_image_arm64: 
    15  	@which docker || (echo "docker not found in ${PATH}"; exit 1)
    16  	GOOS=linux GOARCH=arm64 $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/tiflow ./cmd/tiflow/main.go
    17  	GOOS=linux GOARCH=arm64 $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/tiflow-chaos-case ./engine/chaos/cases
    18  	docker build --platform linux/arm64 -f ./deployments/engine/docker/dev.Dockerfile -t dataflow:test ./
    19  
    20  engine_image_from_local:
    21  	@which docker || (echo "docker not found in ${PATH}"; exit 1)
    22  	./engine/test/utils/run_engine.sh build-local
    23  
    24  engine_deploy_1master1executor_env:
    25  	@which docker || (echo "docker not found in ${PATH}"; exit 1)
    26  	./engine/test/utils/run_engine.sh deploy ./deployments/engine/docker-compose/1m1e.yaml 
    27  
    28  engine_stop_1master1executor_env:
    29  	@which docker || (echo "docker not found in ${PATH}"; exit 1)
    30  	./engine/test/utils/run_engine.sh stop ./deployments/engine/docker-compose/1m1e.yaml 
    31  
    32  engine_deploy_3masters3executors_env:
    33  	@which docker || (echo "docker not found in ${PATH}"; exit 1)
    34  	./engine/test/utils/run_engine.sh deploy ./deployments/engine/docker-compose/3m3e.yaml 
    35  
    36  engine_stop_3masters3executors_env:
    37  	@which docker || (echo "docker not found in ${PATH}"; exit 1)
    38  	./engine/test/utils/run_engine.sh stop ./deployments/engine/docker-compose/3m3e.yaml
    39  
    40  engine_deploy_1master1executor1dm_env:
    41  	@which docker || (echo "docker not found in ${PATH}"; exit 1)
    42  	./engine/test/utils/run_engine.sh deploy ./deployments/engine/docker-compose/1m1e.yaml ./deployments/engine/docker-compose/dm_databases.yaml 
    43  
    44  engine_stop_1master1executor1dm_env:
    45  	@which docker || (echo "docker not found in ${PATH}"; exit 1)
    46  	./engine/test/utils/run_engine.sh stop ./deployments/engine/docker-compose/1m1e.yaml ./deployments/engine/docker-compose/dm_databases.yaml
    47  
    48  engine_deploy_monitor_env:
    49  	@which docker || (echo "docker not found in ${PATH}"; exit 1)
    50  	./engine/test/utils/run_engine.sh deploy ./deployments/engine/docker-compose/1prometheus.yaml
    51  
    52  engine_stop_monitor_env:
    53  	@which docker || (echo "docker not found in ${PATH}"; exit 1)
    54  	./engine/test/utils/run_engine.sh stop ./deployments/engine/docker-compose/1prometheus.yaml