Skip to content

Commit f311790

Browse files
authored
OpenSergo Dashboard release 0.0.1 (#1)
OpenSergo Dashboard 0.0.1 version
1 parent a07cc82 commit f311790

File tree

272 files changed

+49660
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+49660
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
target/
2+
*.versionsBackup
3+
4+
*.iml

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# OpenSergo Dashboard
2+
3+
You can view and modify your service information and service governance configuration on the OpenSergo dashboard.
4+
5+
## Quick Start
6+
7+
1. Download code: `git clone https://github.com/opensergo/opensergo-dashboard.git`
8+
2. Modify `opensergo-dashboard-server/src/main/resources/application.yaml`, specify the mysql server address
9+
* Table struct: [opensergo-dashboard-server/src/main/resources/schema.sql](./opensergo-dashboard-server/src/main/resources/schema.sql)
10+
3. Build
11+
* `mvn clean package -Dmaven.test.skip=true`
12+
4. Launch
13+
* `cd opensergo-dashboard-server/target/; java -jar opensergo-dashboard.jar`
14+
5. Visit `http://localhost:8080/`
15+
16+
## Package and Release
17+
18+
1. Download code, and execute `mvn clean package -Dmaven.test.skip=true -Prelease`
19+
2. `opensergo-dashboard-distribution/target/opensergo-dashboard-${version}.zip` is the release package
20+
3. Extract the package, and execute `opensergo-dashboard-${version}/bin/startup.sh`

README.zh-Hans.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# OpenSergo 控制台
2+
3+
您可以在 OpenSergo 的控制台上查看、修改您的服务信息、服务治理配置。
4+
5+
## 快速开始
6+
7+
1. 下载代码:`git clone https://github.com/opensergo/opensergo-dashboard.git`
8+
2.`opensergo-dashboard-server/src/main/resources/application.yaml`中指定mysql的地址
9+
* mysql的表结构见 [opensergo-dashboard-server/src/main/resources/schema.sql](./opensergo-dashboard-server/src/main/resources/schema.sql)
10+
3. 构建
11+
* `mvn clean package -Dmaven.test.skip=true`
12+
4. 启动
13+
* `cd opensergo-dashboard-server/target/; java -jar opensergo-dashboard.jar`
14+
5. 访问 `http://localhost:8080/`
15+
16+
## 打包发布
17+
18+
1. 下载代码后,执行`mvn clean package -Dmaven.test.skip=true -Prelease`
19+
2. `opensergo-dashboard-distribution/target/opensergo-dashboard-${version}.zip`即为打包好的文件
20+
3. 解压后执行其中的`opensergo-dashboard-${version}/bin/startup.sh`即可启动
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<groupId>io.opensergo</groupId>
7+
<artifactId>opensergo-dashboard</artifactId>
8+
<version>0.0.1</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>opensergo-dashboard-distribution</artifactId>
13+
14+
<dependencies>
15+
<dependency>
16+
<groupId>io.opensergo</groupId>
17+
<artifactId>opensergo-dashboard-ui</artifactId>
18+
<version>${project.version}</version>
19+
<type>pom</type>
20+
</dependency>
21+
<dependency>
22+
<groupId>io.opensergo</groupId>
23+
<artifactId>opensergo-dashboard-server</artifactId>
24+
<version>${project.version}</version>
25+
</dependency>
26+
</dependencies>
27+
28+
<profiles>
29+
<profile>
30+
<id>release</id>
31+
<build>
32+
<finalName>opensergo-dashboard-${project.version}</finalName>
33+
<plugins>
34+
<plugin>
35+
<artifactId>maven-assembly-plugin</artifactId>
36+
<version>3.1.0</version>
37+
<executions>
38+
<execution>
39+
<id>bin-release</id>
40+
<phase>package</phase>
41+
<goals>
42+
<goal>single</goal>
43+
</goals>
44+
<configuration>
45+
<descriptors>
46+
<descriptor>src/assembly/assembly.xml</descriptor>
47+
</descriptors>
48+
<appendAssemblyId>false</appendAssemblyId>
49+
</configuration>
50+
</execution>
51+
</executions>
52+
</plugin>
53+
<plugin>
54+
<groupId>org.apache.maven.plugins</groupId>
55+
<artifactId>maven-gpg-plugin</artifactId>
56+
<version>1.6</version>
57+
<executions>
58+
<execution>
59+
<phase>verify</phase>
60+
<goals>
61+
<goal>sign</goal>
62+
</goals>
63+
</execution>
64+
</executions>
65+
</plugin>
66+
</plugins>
67+
</build>
68+
</profile>
69+
</profiles>
70+
71+
</project>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
3+
<id>bin-release</id>
4+
<formats>
5+
<format>dir</format>
6+
<format>tar.gz</format>
7+
<format>zip</format>
8+
</formats>
9+
<includeBaseDirectory>true</includeBaseDirectory>
10+
<baseDirectory>${project.build.finalName}</baseDirectory>
11+
<fileSets>
12+
<fileSet>
13+
<directory>src/licenses</directory>
14+
<outputDirectory>licenses</outputDirectory>
15+
</fileSet>
16+
<fileSet>
17+
<directory>src</directory>
18+
<includes>
19+
<include>LICENSE</include>
20+
<include>NOTICE</include>
21+
</includes>
22+
<outputDirectory></outputDirectory>
23+
</fileSet>
24+
<fileSet>
25+
<directory>${basedir}/src/main/resources</directory>
26+
<outputDirectory></outputDirectory>
27+
</fileSet>
28+
</fileSets>
29+
<files>
30+
<file>
31+
<source>../opensergo-dashboard-server/target/opensergo-dashboard.jar</source>
32+
<outputDirectory>lib</outputDirectory>
33+
<destName>opensergo-dashboard.jar</destName>
34+
</file>
35+
</files>
36+
37+
</assembly>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
cd `dirname $0`/../lib
4+
target_dir=`pwd`
5+
6+
pid=`ps ax | grep -i 'opensergo-dashboard' | grep ${target_dir} | grep java | grep -v grep | awk '{print $1}'`
7+
if [ -z "$pid" ] ; then
8+
echo "No opensergo-dashboard server running."
9+
exit -1;
10+
fi
11+
12+
echo "The opensergo-dashboard server(${pid}) is running..."
13+
14+
kill ${pid}
15+
16+
echo "Send shutdown request to opensergo-dashboard server(${pid}) OK!"
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/bin/bash
2+
3+
cygwin=false
4+
darwin=false
5+
os400=false
6+
case "`uname`" in
7+
CYGWIN*) cygwin=true;;
8+
Darwin*) darwin=true;;
9+
OS400*) os400=true;;
10+
esac
11+
[ ! -e "$JAVA_HOME/bin/java" ] && JAVA_HOME=$HOME/jdk/java
12+
[ ! -e "$JAVA_HOME/bin/java" ] && JAVA_HOME=/usr/java
13+
[ ! -e "$JAVA_HOME/bin/java" ] && JAVA_HOME=/opt/taobao/java
14+
[ ! -e "$JAVA_HOME/bin/java" ] && unset JAVA_HOME
15+
16+
if [ -z "$JAVA_HOME" ]; then
17+
if $darwin; then
18+
19+
if [ -x '/usr/libexec/java_home' ] ; then
20+
export JAVA_HOME=`/usr/libexec/java_home`
21+
22+
elif [ -d "/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home" ]; then
23+
export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home"
24+
fi
25+
else
26+
JAVA_PATH=`dirname $(readlink -f $(which javac))`
27+
if [ "x$JAVA_PATH" != "x" ]; then
28+
export JAVA_HOME=`dirname $JAVA_PATH 2>/dev/null`
29+
fi
30+
fi
31+
if [ -z "$JAVA_HOME" ]; then
32+
error_exit "Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later is better!"
33+
fi
34+
fi
35+
36+
export SERVER="opensergo-dashboard"
37+
export JAVA_HOME
38+
export JAVA="$JAVA_HOME/bin/java"
39+
export BASE_DIR=`cd $(dirname $0)/..; pwd`
40+
41+
if [ ! -d "${BASE_DIR}/logs" ]; then
42+
mkdir ${BASE_DIR}/logs
43+
fi
44+
45+
# check the start.out log output file
46+
if [ ! -f "${BASE_DIR}/logs/start.out" ]; then
47+
touch "${BASE_DIR}/logs/start.out"
48+
fi
49+
50+
JAVA_OPT="${JAVA_OPT} -Xms512m -Xmx512m -Xmn256m"
51+
JAVA_OPT="${JAVA_OPT} -Dloader.path=${BASE_DIR}/opt-libs -jar ${BASE_DIR}/lib/${SERVER}.jar"
52+
nohup "$JAVA" ${JAVA_OPT} dubbo.admin >> ${BASE_DIR}/logs/catlog.out 2>&1 &
53+
echo "${SERVER} is starting,you can check the ${BASE_DIR}/logs/catlog.out"

0 commit comments

Comments
 (0)