电池大会--合众项目演示

jaikuai b565dc1f51 hbase hai 3 meses
.vscode 0887c596a4 first hai 1 ano
bin 0887c596a4 first hai 1 ano
doc 0887c596a4 first hai 1 ano
hz-admin b565dc1f51 hbase hai 3 meses
hz-business b565dc1f51 hbase hai 3 meses
hz-common 0887c596a4 first hai 1 ano
hz-framework 0887c596a4 first hai 1 ano
hz-generator 0887c596a4 first hai 1 ano
hz-quartz 0887c596a4 first hai 1 ano
hz-system 0887c596a4 first hai 1 ano
sql 0887c596a4 first hai 1 ano
.DS_Store 0887c596a4 first hai 1 ano
.drone.yml ff45ee83ce 更新 '.drone.yml' hai 1 ano
.gitignore 0887c596a4 first hai 1 ano
Dockerfile c1f51dc47c 更新 'Dockerfile' hai 1 ano
DockerfileTest 0887c596a4 first hai 1 ano
LICENSE 0887c596a4 first hai 1 ano
README.md 0887c596a4 first hai 1 ano
k8s-api-server-prd.yml 0887c596a4 first hai 1 ano
k8s-api-server-test.yml 0887c596a4 first hai 1 ano
k8s-network-service-prd.yml 0887c596a4 first hai 1 ano
k8s-network-service-test.yml 0887c596a4 first hai 1 ano
pom.xml 0887c596a4 first hai 1 ano
ry.bat 0887c596a4 first hai 1 ano
ry.sh 0887c596a4 first hai 1 ano

README.md

一、本系统仅供合众系统使用。

二、登录流程

1.定时任务获取系统用户到本地数据库 2.合众saas系统登录后选择本系统,携带token,解析后获取数据库中用户信息,调用本系统登录接口,直接登录到本系统。 3.目前所有用户登录都需要特殊账号admin登录后赋值权限给用户。 4.用户登录后就会有自己的权限了。

三、系统发布

1.使用docker swarm,提交代码后脚本会自动校验并拉取代码,而后生成镜像文件。 2.测试线和正式线,在修改脚本中的版本后,自动从镜像库中拉取镜像,自动更新到指定版本。

注意: 启动前配置application.yml中配置使用的配置文件

四、系统部署

  1. 服务器环境
  • docker安装

    curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
    
  • docker配置

    sudo mkdir -p /etc/docker/ && sudo vi  /etc/docker/daemon.json
    
    {
    "registry-mirrors": ["https://1u6db9h5.mirror.aliyuncs.com"],
    "insecure-registries": ["0.0.0.0/0"],
    "features": { "buildkit": true },
    "log-driver":"json-file",
    "log-opts": {"max-size":"1024m", "max-file":"3"}
    }
    
  • docker 启动

    sudo  systemctl enable docker && sudo systemctl restart docker
    
  1. swarm-yaml sudo vi hz-admin.yml ```yaml version: "3.7" services: api-server: image: nas.fast-fun.cn:5000/hz/hz-admin-server:1.0.173 environment:

    • PRO_ENV=test networks:
    • hz-admin deploy: mode: replicated replicas: 1 hz-admin-ui: image: nas.fast-fun.cn:5000/hz/hz-admin-ui:1.0.133 restart: always ports:
    • 80:80 networks:
    • hz-admin depends_on:
    • api-server deploy: mode: replicated replicas: 1 networks: hz-admin:

      3. deploy
      ```ssh
      sudo docker stack deploy -c hz-admin.yml hz-admin