代码拉取完成,页面将自动刷新
同步操作将从 ApulisPlatform/Apulis AI Platform 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# 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}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。