Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
月轩居士
SkyWalking
提交
ae36838b
S
SkyWalking
项目概览
月轩居士
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ae36838b
编写于
4月 09, 2017
作者:
Z
zhangxin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add packaging config file and shell script
上级
24a8ea32
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
150 addition
and
0 deletion
+150
-0
skywalking-collector/skywalking-collector-worker/bin/collector-service.bat
...tor/skywalking-collector-worker/bin/collector-service.bat
+17
-0
skywalking-collector/skywalking-collector-worker/bin/collector-service.sh
...ctor/skywalking-collector-worker/bin/collector-service.sh
+27
-0
skywalking-collector/skywalking-collector-worker/bin/startup.bat
...ing-collector/skywalking-collector-worker/bin/startup.bat
+5
-0
skywalking-collector/skywalking-collector-worker/bin/startup.sh
...king-collector/skywalking-collector-worker/bin/startup.sh
+7
-0
skywalking-collector/skywalking-collector-worker/pom.xml
skywalking-collector/skywalking-collector-worker/pom.xml
+52
-0
skywalking-collector/skywalking-collector-worker/src/main/assembly/assembly.xml
...kywalking-collector-worker/src/main/assembly/assembly.xml
+42
-0
未找到文件。
skywalking-collector/skywalking-collector-worker/bin/collector-service.bat
0 → 100644
浏览文件 @
ae36838b
@echo
off
setlocal
set
COLLECOTR_PROCESS_TITLE
=
Skywalking
-Collector
set
COLLECTOR_BASE_PATH
=
%~dp0
%
..
set
COLLECTOR_RUNTIME_OPTIONS
=
"-Xms256M -Xmx512M"
if
""
%JAVA_HOME%
""
==
""""
(
set
_EXECJAVA
=
java
)
else
(
set
_EXECJAVA
=
"
%JAVA_HOME%
"
/bin/java
)
start
/MIN
"
%COLLECOTR_PROCESS_TITLE%
"
%_EXECJAVA%
"
%COLLECTOR_RUNTIME_OPTIONS%
"
-jar
"
%COLLECTOR_BASE_PATH%
"
/libs/skywalking-collector
.jar
&
echo
Collector
started
successfully
!
endlocal
skywalking-collector/skywalking-collector-worker/bin/collector-service.sh
0 → 100644
浏览文件 @
ae36838b
#!/usr/bin/env bash
PRG
=
"
$0
"
PRGDIR
=
`
dirname
"
$PRG
"
`
[
-z
"
$COLLECTOR_HOME
"
]
&&
COLLECTOR_HOME
=
`
cd
"
$PRGDIR
/.."
>
/dev/null
;
pwd
`
COLLECTOR_LOGS_DIR
=
"
${
COLLECTOR_HOME
}
/logs"
COLLECTOR_RUNTIME_OPTIONS
=
" -Xms256M -Xmx512M"
if
[
!
-d
"
${
COLLECTOR_HOME
}
/logs"
]
;
then
mkdir
-p
"
${
COLLECTOR_LOGS_DIR
}
"
fi
_RUNJAVA
=
${
JAVA_HOME
}
/bin/java
[
-z
"
$JAVA_HOME
"
]
&&
_RUNJAVA
=
`
java
`
echo
"Starting collector...."
eval exec
"
\"
$_RUNJAVA
\"
${
COLLECTOR_RUNTIME_OPTIONS
}
-jar
${
COLLECTOR_HOME
}
/libs/skywalking-collector.jar
\
2>
${
COLLECTOR_LOGS_DIR
}
/collector.log 1> /dev/null &"
if
[
$?
-eq
0
]
;
then
sleep
1
echo
"Collector started successfully!"
else
echo
"Collector started failure!"
exit
1
fi
skywalking-collector/skywalking-collector-worker/bin/startup.bat
0 → 100644
浏览文件 @
ae36838b
@echo
off
setlocal
call
"
%~dp0
"
\collector
-service
.bat
start
endlocal
skywalking-collector/skywalking-collector-worker/bin/startup.sh
0 → 100644
浏览文件 @
ae36838b
#!/usr/bin/env bash
PRG
=
"
$0
"
PRGDIR
=
`
dirname
"
$PRG
"
`
EXECUTABLE
=
collector-service.sh
exec
"
$PRGDIR
"
/
"
$EXECUTABLE
"
start
skywalking-collector/skywalking-collector-worker/pom.xml
浏览文件 @
ae36838b
...
...
@@ -14,6 +14,7 @@
<properties>
<jetty.version>
9.4.2.v20170220
</jetty.version>
<main.class>
com.a.eye.skywalking.collector.worker.CollectorBootStartUp
</main.class>
</properties>
<dependencies>
...
...
@@ -46,6 +47,12 @@
<groupId>
com.a.eye
</groupId>
<artifactId>
skywalking-sniffer-mock
</artifactId>
<version>
${project.version}
</version>
<exclusions>
<exclusion>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
</exclusion>
</exclusions>
<scope>
test
</scope>
</dependency>
<dependency>
...
...
@@ -54,4 +61,49 @@
<version>
RELEASE
</version>
</dependency>
</dependencies>
<build>
<finalName>
skywalking-collector
</finalName>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-jar-plugin
</artifactId>
<version>
2.3.2
</version>
<configuration>
<excludes>
<exclude>
*.xml
</exclude>
<exclude>
*.config
</exclude>
</excludes>
<archive>
<addMavenDescriptor>
false
</addMavenDescriptor>
<manifestEntries>
<Class-Path>
config/
</Class-Path>
</manifestEntries>
<manifest>
<addClasspath>
true
</addClasspath>
<mainClass>
${main.class}
</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-assembly-plugin
</artifactId>
<executions>
<execution>
<id>
assembly
</id>
<phase>
package
</phase>
<goals>
<goal>
single
</goal>
</goals>
<configuration>
<descriptors>
<descriptor>
src/main/assembly/assembly.xml
</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
skywalking-collector/skywalking-collector-worker/src/main/assembly/assembly.xml
0 → 100644
浏览文件 @
ae36838b
<assembly
xmlns=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"
>
<id></id>
<formats>
<format>
tar.gz
</format>
<format>
zip
</format>
</formats>
<dependencySets>
<dependencySet>
<outputDirectory>
/libs
</outputDirectory>
<scope>
compile
</scope>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>
${project.basedir}/bin
</directory>
<outputDirectory>
/bin
</outputDirectory>
<includes>
<include>
*.sh
</include>
<include>
*.bat
</include>
</includes>
<fileMode>
0755
</fileMode>
</fileSet>
<fileSet>
<directory>
src/main/resources
</directory>
<includes>
<include>
collector.config
</include>
<include>
log4j2.xml
</include>
</includes>
<outputDirectory>
/config
</outputDirectory>
</fileSet>
<fileSet>
<directory>
${project.build.directory}
</directory>
<outputDirectory>
/libs
</outputDirectory>
<includes>
<include>
${build.finalName}.jar
</include>
</includes>
</fileSet>
</fileSets>
</assembly>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录