2 Star 6 Fork 2

V-Micro / EasyDapr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 2.16 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
Van Zheng 提交于 2022-05-17 22:40 . #
# Identity
.PHONY:build-identity
build-identity:
docker build -f ./IdentityService/Dockerfile -t registry.cn-hangzhou.aliyuncs.com/vanzheng/easydapr-identity:latest .
.PHONY:push-identity
push-identity:
docker push registry.cn-hangzhou.aliyuncs.com/vanzheng/easydapr-identity:latest
.PHONY:k8s-apply-identity
k8s-apply-identity:
kubectl apply -f ./IdentityService/deploy.yaml
.PHONY:k8s-rollout-identity
k8s-rollout-identity:
kubectl rollout restart deploy/identity-app -n easydapr-system
# Inventory
.PHONY:k8s-apply-inventory
k8s-apply-inventory:
kubectl apply -f ./InventoryService.Api/deploy.yaml
.PHONY:k8s-rollout-inventory
k8s-rollout-inventory:
kubectl rollout restart deploy/inventory-app -n easydapr-system
.PHONY:build-inventory
build-inventory:
docker build -f ./InventoryService.Api/Dockerfile -t registry.cn-hangzhou.aliyuncs.com/vanzheng/easydapr-inventory:1.0.0 .
.PHONY:push-inventory
push-inventory:
docker push registry.cn-hangzhou.aliyuncs.com/vanzheng/easydapr-inventory:1.0.0
# config
.PHONY:update-config
update-config:
kubectl apply -f ./config/config.yaml
.PHONY:update-ps
update-ps:
kubectl apply -f ./config/components/pubsub.yaml
.PHONY:update-ss
update-ss:
kubectl apply -f ./config/components/statestore.yaml
# 构建与推送 start
# 构建镜像
.PHONY:build
build:
sudo docker buildx build --platform=linux/amd64 -f ./${path}/Dockerfile . -t ${image}:${tag} --network=host
# 构建镜像
.PHONY:build-local
build-local:
sudo docker buildx build --platform=linux/amd64 -f ./${path}/Dockerfile-local . -t ${image}:${tag} --network=host
# 推送到镜像仓库
.PHONY:push
push:
sudo docker push ${image}:${tag}
# 本地删除
.PHONY:rmi
rmi:
sudo docker rmi ${image}:${tag}
# 运行命令
.PHONY:run
run:
make build && make push && make rmi
# 运行命令
# .PHONY:run-local
# run-local:
# make build-local && make push && make rmi
.PHONY:run-local
run-local:
make build-local
# 运行python脚本执行<构建-推送-删除>
.PHONY:run-build
run-build:
python3 build.py -n ${name} -t ${tag}
# 运行python脚本执行<构建-推送-删除>
.PHONY:run-build-local
run-build-local:
python3 build-local.py -n ${name} -t ${tag}
C#
1
https://gitee.com/vmicro/easy-dapr.git
git@gitee.com:vmicro/easy-dapr.git
vmicro
easy-dapr
EasyDapr
master

搜索帮助

14c37bed 8189591 565d56ea 8189591