1 Star 0 Fork 0

coolops/doraemon

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
jayryu 提交于 2020-07-09 10:16 . Update Makefile
.PHONY: run-ruleengine run-backend run-frontend
gateway.url = "default"
MAKEFLAGS += --warn-undefined-variables
# Build variables
REGISTRY_URI :=360cloud
RELEASE_VERSION :=$(shell git describe --always --tags)
UI_BUILD_VERSION :=v1.0.0
SERVER_BUILD_VERSION :=v1.0.0
# run module
run-ruleengine:
cd cmd/rule-engine/ && export GO111MODULE=on && export GOPROXY=https://goproxy.cn && go run main.go --gateway.url=http://$(gateway.url)
run-backend:
cd cmd/alert-gateway/ && export GO111MODULE=on && export GOPROXY=https://goproxy.cn && go run main.go
run-frontend:
cd web/ && npm run dev
# release, requiring Docker 17.05 or higher on the daemon and client
build-backend-image:
@echo "version: $(RELEASE_VERSION)"
docker build --no-cache -t $(REGISTRY_URI)/alert-gateway:$(RELEASE_VERSION) -f build/backend/Dockerfile .
build-frontend-image:
@echo "version: $(RELEASE_VERSION)"
docker build --no-cache -t $(REGISTRY_URI)/doraemon-frontend:$(RELEASE_VERSION) -f build/frontend/Dockerfile .
build-ruleengine-image:
@echo "version: $(RELEASE_VERSION)"
docker build --no-cache -t $(REGISTRY_URI)/rule-engine:$(RELEASE_VERSION) -f build/rule-engine/Dockerfile .
push-image:
docker tag $(REGISTRY_URI)/alert-gateway:$(RELEASE_VERSION) $(REGISTRY_URI)/alert-gateway:latest
docker push $(REGISTRY_URI)/alert-gateway:$(RELEASE_VERSION)
docker push $(REGISTRY_URI)/alert-gateway:latest
docker tag $(REGISTRY_URI)/doraemon-frontend:$(RELEASE_VERSION) $(REGISTRY_URI)/doraemon-frontend:latest
docker push $(REGISTRY_URI)/doraemon-frontend:$(RELEASE_VERSION)
docker push $(REGISTRY_URI)/doraemon-frontend:latest
docker tag $(REGISTRY_URI)/rule-engine:$(RELEASE_VERSION) $(REGISTRY_URI)/rule-engine:latest
docker push $(REGISTRY_URI)/rule-engine:$(RELEASE_VERSION)
docker push $(REGISTRY_URI)/rule-engine:latest
release: build-backend-image build-frontend-image build-ruleengine-image push-image
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/coolops/doraemon.git
git@gitee.com:coolops/doraemon.git
coolops
doraemon
doraemon
master

搜索帮助