Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
zhangchunsheng 27f3d38f2a | 2 years ago | |
---|---|---|
configs | 3 years ago | |
database | 3 years ago | |
deployment | 3 years ago | |
docs | 3 years ago | |
local_mysql | 3 years ago | |
loggers | 3 years ago | |
models | 3 years ago | |
routers | 3 years ago | |
services | 3 years ago | |
tools | 3 years ago | |
utils | 3 years ago | |
.gitignore | 3 years ago | |
Jenkinsfile | 3 years ago | |
README.md | 3 years ago | |
build.sh | 3 years ago | |
config.template.yaml | 3 years ago | |
go.mod | 2 years ago | |
go.sum | 2 years 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
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》