-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Update auto deploy branch from `dev` to `main` * README EngVer * README zh-CN ver
- Loading branch information
Showing
3 changed files
with
137 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# EventMesh Dashboard | ||
|
||
[🌐 English Version](README.md) | ||
|
||
## 介绍 | ||
|
||
EventMesh Dashboard 处于开发中,将支持 Connection 管理、集群健康检查等功能。欢迎联系 [EventMesh 小助手](https://github.com/apache/eventmesh?tab=readme-ov-file#community)参与贡献。 | ||
|
||
EventMesh 于 v1.8.0 ~ v1.10.0 期间维护的 Dashboard 纯前端项目位于 [Next.js Dashboard 分支](https://github.com/apache/eventmesh-dashboard/tree/nextjs-dashboard)。 | ||
|
||
EventMesh Dashboard 每周开发例会文档:https://docs.qq.com/doc/DQmhVbklUdGNNWGZi | ||
|
||
## 技术架构 | ||
|
||
### 环境 | ||
|
||
- JDK 8/11 | ||
- Maven 3.8.1 | ||
- Spring Boot 2.7.x | ||
|
||
### 模块介绍 | ||
|
||
1. eventmesh-dashboard-console 业务模块的代码,调用service接口 | ||
2. eventmesh-dashboard-observe 监控模块的代码 | ||
3. eventmesh-dashboard-core 对EventMesh Runtime, Meta以及相关组件的代码,提供service实现 | ||
4. eventmesh-dashboard-service 公用API接口,对core的抽象 | ||
5. eventmesh-dashboard-common 公共模块的代码 | ||
6. eventmesh-dashboard-view 前端代码 | ||
|
||
## 自动部署最新版 EventMesh Dashboard | ||
|
||
当仓库代码更新后,脚本将基于最新版本的代码构建并运行 EventMesh Dashboard。 | ||
|
||
### 快速开始 | ||
|
||
``` | ||
cd ~/service | ||
git clone https://github.com/apache/eventmesh-dashboard.git | ||
cd eventmesh-dashboard/deployment/ | ||
``` | ||
|
||
编辑凭据: | ||
|
||
``` | ||
cp .env.example .env | ||
vim .env | ||
``` | ||
|
||
添加定时任务: | ||
|
||
``` | ||
crontab -e | ||
``` | ||
|
||
``` | ||
0 * * * * bash ~/service/eventmesh-dashboard/deployment/auto-deploy-eventmesh-dashboard.sh | ||
``` | ||
|
||
## 构建 | ||
|
||
### 使用源代码构建 | ||
|
||
``` | ||
cd eventmesh-dashboard | ||
mvn clean package | ||
``` | ||
|
||
``` | ||
java -DDB_ADDRESS=$DB_ADDRESS -DDB_USERNAME=$DB_USERNAME -DDB_PASSWORD=$DB_PASSWORD -jar eventmesh-dashboard-console/target/eventmesh-dashboard-console-0.0.1-SNAPSHOT.jar | ||
``` | ||
|
||
### 构建并运行 Docker 镜像 | ||
|
||
>To be updated | ||
``` | ||
cd eventmesh-dashboard | ||
./gradlew clean bootJar | ||
docker build -t yourname/eventmesh-dashboard -f docker/Dockerfile . | ||
``` | ||
|
||
``` | ||
docker run -d --name eventmesh-dashboard -p 8080:8080 yourname/eventmesh-dashboard | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters