1 Star 0 Fork 35

喻俊/KubeOperator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
chenyang 提交于 2020-12-04 18:34 . feat(multi cluster) multi cluster 完成
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
BASEPATH := $(shell pwd)
BUILDDIR=$(BASEPATH)/dist
GOGINDATA=go-bindata
KO_SERVER_NAME=ko-server
KO_CONFIG_DIR=etc/ko
KO_BIN_DIR=usr/local/bin
KO_DATA_DIR=usr/local/lib/ko
GOPROXY="https://goproxy.cn,direct"
build_server_linux:
GOOS=linux GOARCH=$(GOARCH) $(GOGINDATA) -o ./pkg/i18n/locales.go -pkg i18n ./locales/...
GOOS=linux GOARCH=$(GOARCH) $(GOBUILD) -o $(BUILDDIR)/$(KO_BIN_DIR)/$(KO_SERVER_NAME) main.go
mkdir -p $(BUILDDIR)/$(KO_CONFIG_DIR) && cp -r $(BASEPATH)/conf/app.yaml $(BUILDDIR)/$(KO_CONFIG_DIR)
mkdir -p $(BUILDDIR)/$(KO_DATA_DIR)
cp -r $(BASEPATH)/migration $(BUILDDIR)/$(KO_DATA_DIR)
docker_ui:
docker build -t kubeoperator/ui:master ./ui --no-cache
docker_server:
docker build -t kubeoperator/server:master --build-arg GOPROXY=$(GOPROXY) --build-arg GOARCH=$(GOARCH) --build-arg XPACK="no" .
docker_server_xpack:
docker build -t kubeoperator/server:master --build-arg GOPROXY=$(GOPROXY) --build-arg GOARCH=$(GOARCH) --build-arg XPACK="yes" .
clean:
rm -fr ./dist
go clean
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yujun123456/KubeOperator.git
git@gitee.com:yujun123456/KubeOperator.git
yujun123456
KubeOperator
KubeOperator
master

搜索帮助