zyg b289e39496 分析报告 | 1 year ago | |
---|---|---|
.vscode | 1 year ago | |
bin | 1 year ago | |
doc | 1 year ago | |
hz-admin | 1 year ago | |
hz-business | 1 year ago | |
hz-common | 1 year ago | |
hz-framework | 1 year ago | |
hz-generator | 1 year ago | |
hz-quartz | 1 year ago | |
hz-system | 1 year ago | |
sql | 1 year ago | |
.DS_Store | 1 year ago | |
.drone.yml | 1 year ago | |
.gitignore | 1 year ago | |
Dockerfile | 1 year ago | |
DockerfileTest | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
k8s-api-server-prd.yml | 1 year ago | |
k8s-api-server-test.yml | 1 year ago | |
k8s-network-service-prd.yml | 1 year ago | |
k8s-network-service-test.yml | 1 year ago | |
pom.xml | 1 year ago | |
ry.bat | 1 year ago | |
ry.sh | 1 year ago |
1.定时任务获取系统用户到本地数据库 2.合众saas系统登录后选择本系统,携带token,解析后获取数据库中用户信息,调用本系统登录接口,直接登录到本系统。 3.目前所有用户登录都需要特殊账号admin登录后赋值权限给用户。 4.用户登录后就会有自己的权限了。
1.使用docker swarm,提交代码后脚本会自动校验并拉取代码,而后生成镜像文件。 2.测试线和正式线,在修改脚本中的版本后,自动从镜像库中拉取镜像,自动更新到指定版本。
注意: 启动前配置application.yml中配置使用的配置文件
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
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:
api-server deploy: mode: replicated replicas: 1 networks: hz-admin:
3. deploy
```ssh
sudo docker stack deploy -c hz-admin.yml hz-admin