1 Star 0 Fork 93

dickli_1234/Apulis AI Platform

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
Qiming.Wang 提交于 2021-08-23 15:10 . harbor
# note: call scripts from /scripts
image_name ?=ai-lab
harbor_addr=harbor.apulis.cn:8443/aistudio/bmod/${image_name}
tag =aistudio-v0.1.0
arch =$(shell arch)
testarch:
ifeq (${arch}, x86_64)
@echo "current build host is amd64 ..."
$(eval arch=amd64)
else ifeq (${arch},aarch64)
@echo "current build host is arm64 ..."
$(eval arch=arm64)
else
echo "cannot judge host arch:${arch}"
exit -1
endif
@echo "arch type:$(arch)"
get-deps:
git submodule init
git submodule update
go mod vendor
vet-check-all: get-deps
go vet ./...
gosec-check-all: get-deps
gosec ./...
bin: get-deps
go build -o ${image_name} cmd/${image_name}.go
docker:
docker build -f build/Dockerfile . -t ${image_name}:${tag} --build-arg project=${image_name}
kind:docker
kind load docker-image ${image_name}:${tag} --name river
gen-swagger:
swag init -g cmd/${image_name}.go -o api
dist: testarch
docker build -t ${image_name} -f build/Dockerfile .
docker tag ${image_name} ${harbor_addr}/${arch}:${tag}
docker push ${harbor_addr}/${arch}:${tag}
manifest:
./docker_manifest.sh ${harbor_addr}:${tag}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/dickli-twelve/Apulis-AI-Platform.git
git@gitee.com:dickli-twelve/Apulis-AI-Platform.git
dickli-twelve
Apulis-AI-Platform
Apulis AI Platform
v1.6.0

搜索帮助