milvus/shards/Makefile

42 lines
1.6 KiB
Makefile
Raw Normal View History

2019-11-04 11:15:07 +08:00
HOST=$(or $(host),127.0.0.1)
PORT=$(or $(port),19530)
2019-10-31 10:47:46 +08:00
build:
docker build --network=host -t milvusdb/mishards .
push:
docker push milvusdb/mishards
pull:
docker pull milvusdb/mishards
2019-11-04 11:15:07 +08:00
deploy: clean_deploy
2019-10-31 10:47:46 +08:00
cd all_in_one && docker-compose -f all_in_one.yml up -d && cd -
2019-10-31 11:09:40 +08:00
clean_deploy:
2019-10-31 10:47:46 +08:00
cd all_in_one && docker-compose -f all_in_one.yml down && cd -
2019-11-04 11:15:07 +08:00
probe_deploy:
docker run --rm --name probe --net=host milvusdb/mishards /bin/bash -c "python all_in_one/probe_test.py"
deploy_m: clean_deploy_m
cd all_in_one_with_mysql && docker-compose -f all_in_one.yml up -d && cd -
clean_deploy_m:
cd all_in_one_with_mysql && docker-compose -f all_in_one.yml down && cd -
probe_deploy_m:
docker run --rm --name probe --net=host milvusdb/mishards /bin/bash -c "python all_in_one_with_mysql/probe_test.py"
2019-11-04 11:15:07 +08:00
cluster:
2019-11-04 11:33:34 +08:00
cd kubernetes_demo;./start.sh baseup;sleep 10;./start.sh appup;cd -
2019-11-04 11:15:07 +08:00
clean_cluster:
cd kubernetes_demo;./start.sh cleanup;cd -
cluster_status:
kubectl get pods -n milvus -o wide
probe_cluster:
@echo
$(shell kubectl get service -n milvus | grep milvus-proxy-servers | awk {'print $$4,$$5'} | awk -F"[: ]" {'print "docker run --rm --name probe --net=host milvusdb/mishards /bin/bash -c \"python all_in_one/probe_test.py --port="$$2" --host="$$1"\""'})
probe:
docker run --rm --name probe --net=host milvusdb/mishards /bin/bash -c "python all_in_one/probe_test.py --port=${PORT} --host=${HOST}"
2019-10-31 11:09:40 +08:00
clean_coverage:
rm -rf cov_html
2019-11-04 11:34:58 +08:00
clean: clean_coverage clean_deploy clean_cluster
2019-10-31 11:09:40 +08:00
style:
2019-10-31 10:47:46 +08:00
pycodestyle --config=.
2019-10-31 11:09:40 +08:00
coverage:
2019-10-31 10:47:46 +08:00
pytest --cov-report html:cov_html --cov=mishards
2019-10-31 11:09:40 +08:00
test:
pytest