Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
1 year ago | |
---|---|---|
configs | 2 years ago | |
database | 2 years ago | |
deployment | 2 years ago | |
docs | 2 years ago | |
local_mysql | 3 years ago | |
loggers | 3 years ago | |
models | 2 years ago | |
routers | 2 years ago | |
services | 2 years ago | |
tools | 3 years ago | |
utils | 2 years ago | |
.gitignore | 3 years ago | |
Jenkinsfile | 2 years ago | |
README.md | 3 years ago | |
build.sh | 2 years ago | |
config.template.yaml | 2 years ago | |
go.mod | 1 year ago | |
go.sum | 1 year ago | |
main.go | 3 years ago |
Backend for AIArts.
configs/config.go
,使用viper
库读取配置config.yaml
已放入.gitignore,格式按照config.template.yaml
编写config.yaml
database/db.go
,使用时需引入,无需再创建实例gorm
库,参考文档config.yaml
loggers/logger.go
,使用时需引入,无需再创建实例loggers/gin_logger.go
替换,保持与其他日志格式一致gin
框架,整体路由在routers/router.go
routers/success_resp.go
中的函数routers/error_handlers.go
routers/error_codes.go
(待讨论)swag init
即可公用数据集存放路径/dlwsdata/storage/dataset/storage
私有数据集存放路径/dlwsdata/work/user/storage
更新并push至harbor
sudo vim /etc/hosts
增加 10.31.3.211 harbor.sigsus.cn
sudo vim /etc/docker/daemon.json
{
"registry-mirrors": [],
"insecure-registries": [
"https://harbor.sigsus.cn:8443"
],
"debug": true,
"experimental": false
}
重启docker并登陆(需要进入 https://10.31.3.211:8443 注册)
sudo systemctl restart docker
sudo docker login harbor.sigsus.cn:8443
开始推送到harbor
cd deployment
./build2harbor.sh
依瞳人工智能平台业务后端
Go Text Shell Dockerfile