1 Star 0 Fork 14

wanghe-fit2cloud/KubePi

forked from 飞致云/KubePi 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1004 Bytes
一键复制 编辑 原始数据 按行查看 历史
Aaron3S 提交于 2021-09-30 15:53 . feat(gotty): 增加gotty build
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOARCH=$(shell go env GOARCH)
GOOS=$(shell go env GOOS )
BASEPATH := $(shell pwd)
BUILDDIR=$(BASEPATH)/dist/usr/local/bin
KUBEPIDIR=$(BASEPATH)/web/kubepi
DASHBOARDDIR=$(BASEPATH)/web/dashboard
TERMINALDIR=$(BASEPATH)/web/terminal
GOTTYDIR=$(BASEPATH)/thirdparty/gotty
MAIN= $(BASEPATH)/cmd/server/main.go
APP_NAME=kubepi-server
build_web_kubepi:
cd $(KUBEPIDIR) && npm install && npm run-script build
build_web_dashboard:
cd $(DASHBOARDDIR) && npm install && npm run-script build
build_web_terminal:
cd $(TERMINALDIR) && npm install && npm run-script build
build_web: build_web_kubepi build_web_dashboard build_web_terminal
build_bin:
GOOS=$(GOOS) GOARCH=$(GOARCH) $(GOBUILD) -trimpath -ldflags "-s -w" -o $(BUILDDIR)/$(APP_NAME) $(MAIN)
build_gotty:
cd $(GOTTYDIR) && make && mkdir -p ${BUILDDIR} && mv gotty ${BUILDDIR}
build_all: build_web build_gotty build_bin
build_docker:
docker build -t kubeoperator/kubepi-server:master .
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/wanghe-fit2cloud/KubePi.git
[email protected]:wanghe-fit2cloud/KubePi.git
wanghe-fit2cloud
KubePi
KubePi
master

搜索帮助