-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b1ebf6
commit ba64e06
Showing
1 changed file
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# SCA OpenSergo Demo | ||
|
||
## 如何运行 | ||
|
||
1. 运行 [OpenSergo Dashboard](https://github.com/opensergo/opensergo-dashboard/blob/develop/README.zh-Hans.md)。 | ||
|
||
2. 构建 `SCA SNAPSHOT版本`(依赖[`io.opensergo:opensergo-java:0.0.1-SNAPSHOT`](https://github.com/opensergo/opensergo-java/packages/1332235)) | ||
|
||
```bash | ||
git clone https://github.com/robberphex/spring-cloud-alibaba.git | ||
cd spring-cloud-alibaba | ||
git checkout opensergo | ||
mvn clean compile install -DskipTests | ||
``` | ||
|
||
3. 编译此项目: | ||
|
||
```bash | ||
git clone https://github.com/robberphex/example-opensergo-sca.git | ||
cd example-opensergo-sca | ||
mvn clean compile package -DskipTests | ||
# 最终产物 ./target/opensergo-sc-demo-0.0.1-SNAPSHOT.jar | ||
``` | ||
|
||
4. 运行此项目: | ||
|
||
```shell | ||
env OPENSERGO_BOOTSTRAP_CONFIG='{"endpoint":"localhost:9090"}' \ | ||
java -jar ./target/opensergo-sc-demo-0.0.1-SNAPSHOT.jar | ||
``` | ||
|
||
然后就可以在 OpenSergo Dashboard 上看到对应的应用了。 |