Skip to content

Commit

Permalink
add READEME
Browse files Browse the repository at this point in the history
  • Loading branch information
robberphex committed Mar 31, 2022
1 parent 1b1ebf6 commit ba64e06
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
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 上看到对应的应用了。

0 comments on commit ba64e06

Please sign in to comment.