CI/CD

reghao 99162d2a92 pom.xml 添加 aliyunmaven 仓库配置, 本地仓库中不存在依赖时, maven 会根据 <repositories> 中定义的顺序查找, 第一个仓库中找不到依赖时, 会在第二个仓库中查找 4 weeks ago
agent c1cd4f2013 更新 AppDeployConfig 相关接口和实现 4 weeks ago
bin e571fecece 1.更新 AppBuildServiceImpl 中的 AppConfig 更新相关实现 1 month ago
common c1cd4f2013 更新 AppDeployConfig 相关接口和实现 4 weeks ago
mgr 188709c475 采用 https://github.com/reghao/jutil 项目中最新 commit 的前 8 位作为 <groupId>com.github.reghao.jutil</groupId> 的版本号 4 weeks ago
zzz 1879471310 一大波更新 1 month ago
.gitignore 77746bcc59 1.将原来的 bnt 仓库更名为 bnt1, 原来的 devops 仓库更名为 bnt 6 months ago
Dockerfile e571fecece 1.更新 AppBuildServiceImpl 中的 AppConfig 更新相关实现 1 month ago
Dockerfile.agent ca93e63ae3 添加 agent 模块的 Dockerfile 和 启动脚本 4 weeks ago
README.md 42ec1a4e1d 将 mgr 和 agent 模块经过 mvn 构建的 jar 包名修改为 ops-mgr.jar 和 ops-agent.jar 1 month ago
docker-agent.sh ca93e63ae3 添加 agent 模块的 Dockerfile 和 启动脚本 4 weeks ago
docker-compose.yml e571fecece 1.更新 AppBuildServiceImpl 中的 AppConfig 更新相关实现 1 month ago
docker-run.sh e571fecece 1.更新 AppBuildServiceImpl 中的 AppConfig 更新相关实现 1 month ago
pom.xml 99162d2a92 pom.xml 添加 aliyunmaven 仓库配置, 本地仓库中不存在依赖时, maven 会根据 <repositories> 中定义的顺序查找, 第一个仓库中找不到依赖时, 会在第二个仓库中查找 4 weeks ago

README.md

devops

依赖

  • os:Linux
  • jdk:17
  • maven:3.9
  • mysql:8.0

模块

devops 项目模块:

  • common > 公共依赖
  • mgr > 构建管理端,监听 4030 端口
  • agent > 部署监控端,通过 websocket 和 mgr 通信

构建

安装依赖

git clone https://git.reghao.cn/reghao/jutil
cd jutil
mvn clean install -Dmaven.test.skip=true

构建应用

mvn clean package -Dmaven.test.skip

执行上述命令后, 会在 bin/mgr 和 bin/agent 目录里生成 ops-mgr.jar 和 ops-agent.jar 两个文件

ops-mgr 需要修改 bin/mgr/devopsmgr.yml 中的数据库连接

ops-agent 需要修改 bin/agent/devopsagent.json 中的 ops-mgr 的地址和端口

然后在相应目录中执行 start.sh 和 shutdown.sh 两个脚本可以分配启动和结束应用