Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gdyjdao
SkyWalking
提交
442c301f
S
SkyWalking
项目概览
gdyjdao
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
1
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,发现更多精彩内容 >>
提交
442c301f
编写于
12月 18, 2016
作者:
A
ascrutae
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
完成镜像打包
上级
12b41c1d
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
332 addition
and
8 deletion
+332
-8
skywalking-alarm/docker/Dockerfile
skywalking-alarm/docker/Dockerfile
+24
-0
skywalking-alarm/docker/config.properties
skywalking-alarm/docker/config.properties
+81
-0
skywalking-alarm/docker/docker-entrypoint.sh
skywalking-alarm/docker/docker-entrypoint.sh
+36
-1
skywalking-alarm/pom.xml
skywalking-alarm/pom.xml
+13
-1
skywalking-alarm/src/main/assembly/assembly.xml
skywalking-alarm/src/main/assembly/assembly.xml
+1
-1
skywalking-storage-center/skywalking-routing/docker/Dockerfile
...lking-storage-center/skywalking-routing/docker/Dockerfile
+13
-0
skywalking-storage-center/skywalking-routing/docker/config.properties
...torage-center/skywalking-routing/docker/config.properties
+38
-0
skywalking-storage-center/skywalking-routing/docker/docker-entrypoint.sh
...age-center/skywalking-routing/docker/docker-entrypoint.sh
+7
-0
skywalking-storage-center/skywalking-routing/pom.xml
skywalking-storage-center/skywalking-routing/pom.xml
+22
-1
skywalking-storage-center/skywalking-routing/src/main/assembly/assembly.xml
...-center/skywalking-routing/src/main/assembly/assembly.xml
+1
-1
skywalking-storage-center/skywalking-storage/docker/Dockerfile
...lking-storage-center/skywalking-storage/docker/Dockerfile
+15
-0
skywalking-storage-center/skywalking-storage/docker/config.properties
...torage-center/skywalking-storage/docker/config.properties
+47
-0
skywalking-storage-center/skywalking-storage/docker/docker-entrypoint.sh
...age-center/skywalking-storage/docker/docker-entrypoint.sh
+4
-0
skywalking-storage-center/skywalking-storage/pom.xml
skywalking-storage-center/skywalking-storage/pom.xml
+21
-0
skywalking-storage-center/skywalking-storage/src/main/assembly/assembly.xml
...-center/skywalking-storage/src/main/assembly/assembly.xml
+1
-1
skywalking-webui/docker/Dockerfile
skywalking-webui/docker/Dockerfile
+2
-1
skywalking-webui/docker/docker-entrypoint.sh
skywalking-webui/docker/docker-entrypoint.sh
+3
-0
skywalking-webui/docker/jdbc.properties
skywalking-webui/docker/jdbc.properties
+1
-0
skywalking-webui/src/main/resources/jdbc.properties
skywalking-webui/src/main/resources/jdbc.properties
+1
-0
skywalking-webui/src/main/resources/spring/application-jdbc.xml
...king-webui/src/main/resources/spring/application-jdbc.xml
+1
-1
未找到文件。
skywalking-alarm/docker/Dockerfile
浏览文件 @
442c301f
FROM
openjdk:8u111-jdk
ENV
ALARM_COORDINATE_ZK_ADDRESS=localhost:2181 \
MYSQL_SERVER=localhost:3306 \
MYSQL_USER=root \
MYSQL_PASSWORD=root \
REDIS_SERVER=localhost:6379 \
ALARM_MAIL_HOST=smtp.mail.com \
MAIL_SSL_ENABLE=true \
MAIL_USER_NAME=skywalking \
MAIL_PASSWORD=skywalking \
MAIL_SENDER_MAIL=skywalking@mail.com \
WEBUI_DEPLOY_ADDRESS=localhost:8080 \
WEBUI_CONTEXT_NAME=skywalking
ADD
skywalking-alarm.tar /usr/local/
COPY
config.properties /usr/local/skywalking-alarm/config
COPY
docker-entrypoint.sh /
RUN
chmod
+x /docker-entrypoint.sh
ENTRYPOINT
["/docker-entrypoint.sh"]
CMD
["/usr/local/skywalking-alarm/bin/sw-alarm-server.sh"]
skywalking-alarm/docker/config.properties
0 → 100644
浏览文件 @
442c301f
#告警处理线程数
server.process_thread_size
=
2
#守护线程等待周期
server.daemon_thread_wait_interval
=
50000
#告警规则生效周期
server.alarm_rule_activity_interval
=
3600000
#处理线程等待周期
processthread.thread_wait_interval
=
5000
#zookeeper连接地址
zkpath.connect_str
=
{ALARM_COORDINATE_ZK_ADDRESS}
#zookeeper连接超时时间(单位:毫秒)
zkpath.connect_timeout
=
1000
#zookeeper重试次数
zkpath.retry_times
=
3
#zookeeper重试超时时间(单位:毫秒)
zkpath.retry_timeout
=
1000
#告警规则的path前缀
zkpath.node_prefix
=
/skywalking
#告警服务的处理线程注册地址
zkpath.register_server_path
=
/skywalking/alarm-server/register-servers
#告警服务的协调器的竞争锁地址
zkpath.coordinator_path
=
/skywalking/alarm-server/coordinator/lock
#尝试成为协调器的竞争锁周期(单位:秒)
coordinator.retry_get_coordinator_lock_interval
=
5
#尝试成为协调器的等待时间(单位:毫秒)
coordinator.retry_become_coordinator_wait_time
=
10000
#检查是否需要重新分配的周期(单位:毫秒)
coordinator.check_redistribute_interval
=
5000
#检查所有处理线程的周期(单位:毫秒)
coordinator.check_all_process_thread_interval
=
500
#数据库驱动类
db.driver_class
=
com.mysql.jdbc.Driver
#数据库连接地址
db.url
=
jdbc:mysql://{MYSQL_SERVER}/test
#数据库用户名
db.user_name
=
{MYSQL_USER}
#数据库密码
db.password
=
{MYSQL_PASSWORD}
#数据库连接最大空闲数
db.max_idle
=
1
#数据库最大连接数
db.max_pool_size
=
20
#数据连接超时时间
db.connect_timeout
=
10000
#告警信息存在的redis服务器地址
alarm.redis_server
=
{REDIS_SERVER}
#redis的最大空闲连接数
alarm.redis_max_idle
=
20
#redis的最小空闲连接数
alarm.redis_min_idle
=
1
#redis最大连接数
alarm.redis_max_total
=
50
#是否关闭告警发送
alarm.alarm_off_flag
=
false
alarm.checker.turn_on_exception_checker
=
true
#告警检查器:执行时间超时告警检查
alarm.checker.turn_on_execute_time_checker
=
true
#邮件发送配置id
mailsenderinfo.mail_host
=
{ALARM_MAIL_HOST}
mailsenderinfo.transport_protocol
=
smtp
mailsenderinfo.smtp_auth
=
true
mailsenderinfo.smtp_start_ssl_enable
=
{MAIL_SSL_ENABLE}
mailsenderinfo.username
=
{MAIL_USER_NAME}
mailsenderinfo.password
=
{MAIL_PASSWORD}
mailsenderinfo.sender
=
{MAIL_SENDER_MAIL}
mailsenderinfo.ssl_enable
=
{MAIL_SSL_ENABLE}
#邮件模板配置id
templateinfo.portal_url
=
http://{WEBUI_DEPLOY_ADDRESS}/{WEBUI_CONTEXT_NAME}
#尝试获取轮询锁的周期(单位:毫秒)
inspectthread.retry_get_inspect_lock_interval
=
10000
#尝试检查用户列表的周期(单位:毫秒)
inspectthread.check_user_list_interval
=
300000
skywalking-alarm/docker/docker-entrypoint.sh
浏览文件 @
442c301f
#!/bin/bash
#!/bin/bash
echo
"replace ALARM_COORDINATE_ZK_ADDRESS with
$ALARM_COORDINATE_ZK_ADDRESS
"
eval sed
-i
-e
's/\{ALARM_COORDINATE_ZK_ADDRESS\}/$ALARM_COORDINATE_ZK_ADDRESS/'
/usr/local/skywalking-alarm/config/config.properties
echo
"replace MYSQL_SERVER with
$MYSQL_SERVER
"
eval sed
-i
-e
's/\{MYSQL_SERVER\}/$MYSQL_SERVER/'
/usr/local/skywalking-alarm/config/config.properties
exec
"
$@
"
echo
"replace MYSQL_USER with
$MYSQL_USER
"
\ No newline at end of file
eval sed
-i
-e
's/\{MYSQL_USER\}/$MYSQL_USER/'
/usr/local/skywalking-alarm/config/config.properties
echo
"replace MYSQL_PASSWORD with
$MYSQL_PASSWORD
"
eval sed
-i
-e
's/\{MYSQL_PASSWORD\}/$MYSQL_PASSWORD/'
/usr/local/skywalking-alarm/config/config.properties
echo
"replace REDIS_SERVER with
$REDIS_SERVER
"
eval sed
-i
-e
's/\{REDIS_SERVER\}/$REDIS_SERVER/'
/usr/local/skywalking-alarm/config/config.properties
echo
"replcae ALARM_MAIL_HOST with
$ALARM_MAIL_HOST
"
eval sed
-i
-e
's/\{ALARM_MAIL_HOST\}/$ALARM_MAIL_HOST/'
/usr/local/skywalking-alarm/config/config.properties
echo
"replace MAIL_SSL_ENABLE with
$MAIL_SSL_ENABLE
"
eval sed
-i
-e
's/\{MAIL_SSL_ENABLE\}/$MAIL_SSL_ENABLE/'
/usr/local/skywalking-alarm/config/config.properties
echo
"replace MAIL_USER_NAME with
$MAIL_USER_NAME
"
eval sed
-i
-e
's/\{MAIL_USER_NAME\}/$MAIL_USER_NAME/'
/usr/local/skywalking-alarm/config/config.properties
echo
"replace MAIL_PASSWORD with
$MAIL_PASSWORD
"
eval sed
-i
-e
's/\{MAIL_PASSWORD\}/$MAIL_PASSWORD/'
/usr/local/skywalking-alarm/config/config.properties
echo
"replace MAIL_SENDER_MAIL with
$MAIL_SENDER_MAIL
"
eval sed
-i
-e
's/\{MAIL_SENDER_MAIL\}/$MAIL_SENDER_MAIL/'
/usr/local/skywalking-alarm/config/config.properties
echo
"replace WEBUI_DEPLOY_ADDRESS with
$WEBUI_DEPLOY_ADDRESS
"
eval sed
-i
-e
's/\{WEBUI_DEPLOY_ADDRESS\}/$WEBUI_DEPLOY_ADDRESS/'
/usr/local/skywalking-alarm/config/config.properties
echo
"replace WEBUI_CONTEXT_NAME with
$WEBUI_CONTEXT_NAME
"
eval sed
-i
-e
's/\{WEBUI_CONTEXT_NAME\}/$WEBUI_CONTEXT_NAME/'
/usr/local/skywalking-alarm/config/config.properties
exec
"
$@
"
skywalking-alarm/pom.xml
浏览文件 @
442c301f
...
@@ -106,7 +106,19 @@
...
@@ -106,7 +106,19 @@
<artifactId>
docker-maven-plugin
</artifactId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
${docker.plugin.version}
</version>
<version>
${docker.plugin.version}
</version>
<configuration>
<configuration>
<skipDocker>
true
</skipDocker>
<skipDocker>
false
</skipDocker>
<dockerDirectory>
${project.basedir}/docker
</dockerDirectory>
<imageName>
skywalking/skywalking-alarm
</imageName>
<imageTags>
<imageTag>
${project.version}
</imageTag>
</imageTags>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
${project.build.directory}
</directory>
<include>
${build.finalName}.tar
</include>
</resource>
</resources>
</configuration>
</configuration>
</plugin>
</plugin>
</plugins>
</plugins>
...
...
skywalking-alarm/src/main/assembly/assembly.xml
浏览文件 @
442c301f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"
>
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>
<id></id>
<formats>
<formats>
<format>
zip
</format>
<format>
tar
</format>
</formats>
</formats>
<dependencySets>
<dependencySets>
<dependencySet>
<dependencySet>
...
...
skywalking-storage-center/skywalking-routing/docker/Dockerfile
浏览文件 @
442c301f
FROM
openjdk:8u111-jdk
ENV
SERVER_PORT=23000 \
REGISTRY_CENTER_URL=localhost:2181 \
ALARM_REDIS_SERVER=localhost:6379
ADD
skywalking-routing.tar /usr/local/
COPY
config.properties /usr/local/skywalking-routing/config/
COPY
docker-entrypoint.sh /
RUN
chmod
+x /docker-entrypoint.sh
ENTRYPOINT
["/docker-entrypoint.sh"]
CMD
["/usr/local/skywalking-routing/bin/routingServer.sh"]
skywalking-storage-center/skywalking-routing/docker/config.properties
0 → 100644
浏览文件 @
442c301f
# the port which routing server listening
server.port
=
{SERVER_PORT}
#
#search.check_cycle=100
#
#search.timeout=3000
# the type of registry center (default: zookeeper)
#registrycenter.type=zookeeper
# the connect url that registry center
registrycenter.connect_url
=
{REGISTRY_CENTER_URL}
# auth schema that registry center
#registrycenter.auth_schema=
# the auth info that registry center
#registrycenter.auth_info=
#
#registrycenter.path_prefix=/skywalking/routing_list/
#
#storagenode.subscribe_path=/skywalking/storage_list
#
#disruptor.buffer_size=524288
#
#disruptor.flush_size=100
# the connect url for alarm
alarm.redis_server
=
{ALARM_REDIS_SERVER}
#
#alarm.alarm_off_flag=true
#
#alarm.alarm_exception_stack_length=300
#
#alarm.alarm_redis_inspector_interval=100
#
#alarm.redis_max_idle=10
#
#alarm.redis_min_idle=1
#
#alarm.redis_max_total=30
#
#
alarm.alarm_expire_seconds
=
3600000
\ No newline at end of file
skywalking-storage-center/skywalking-routing/docker/docker-entrypoint.sh
浏览文件 @
442c301f
#!/bin/bash
#!/bin/bash
echo
"replace SERVER_PORT with
$SERVER_PORT
"
eval sed
-i
-e
's/\{SERVER_PORT\}/$SERVER_PORT/'
/usr/local/skywalking-routing/config/config.properties
echo
"replace REGISTRY_CENTER_URL with
$REGISTRY_CENTER_URL
"
eval sed
-i
-e
's/\{REGISTRY_CENTER_URL\}/$REGISTRY_CENTER_URL/'
/usr/local/skywalking-routing/config/config.properties
echo
"replace ALARM_REDIS_SERVER whit
$ALARM_REDIS_SERVER
"
eval sed
-i
-e
's/\{ALARM_REDIS_SERVER\}/$ALARM_REDIS_SERVER/'
/usr/local/skywalking-routing/config/config.properties
exec
"
$@
"
exec
"
$@
"
\ No newline at end of file
skywalking-storage-center/skywalking-routing/pom.xml
浏览文件 @
442c301f
...
@@ -58,12 +58,33 @@
...
@@ -58,12 +58,33 @@
</goals>
</goals>
<configuration>
<configuration>
<descriptors>
<descriptors>
<descriptor>
src/main/assembly/assembly.xml
</descriptor>
<descriptor>
src/main/assembly/assembly.xml
</descriptor>
</descriptors>
</descriptors>
</configuration>
</configuration>
</execution>
</execution>
</executions>
</executions>
</plugin>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
${docker.plugin.version}
</version>
<configuration>
<skipDocker>
false
</skipDocker>
<dockerDirectory>
${project.basedir}/docker
</dockerDirectory>
<imageName>
skywalking/skywalking-routing
</imageName>
<imageTags>
<imageTag>
${project.version}
</imageTag>
</imageTags>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
${project.build.directory}
</directory>
<include>
${build.finalName}.tar
</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</plugins>
</build>
</build>
</project>
</project>
skywalking-storage-center/skywalking-routing/src/main/assembly/assembly.xml
浏览文件 @
442c301f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"
>
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>
<id></id>
<formats>
<formats>
<format>
zip
</format>
<format>
tar
</format>
</formats>
</formats>
<dependencySets>
<dependencySets>
<dependencySet>
<dependencySet>
...
...
skywalking-storage-center/skywalking-storage/docker/Dockerfile
浏览文件 @
442c301f
FROM
openjdk:8u111-jdk
ENV
SERVER_PORT=34000 \
REGISTRY_CENTER_URL=localhost:2181
ADD
skywalking-storage.tar /usr/local/
COPY
config.properties /usr/local/skywalking-storage/config
COPY
docker-entrypoint.sh /
RUN
chmod
+x /docker-entrypoint.sh
VOLUME
["/usr/local/skywalking-storage/data/file", "/usr/local/skywalking-storage/data/index/data"]
ENTRYPOINT
["/docker-entrypoint.sh"]
CMD
["/usr/local/skywalking-storage/bin/storageServer.sh"]
skywalking-storage-center/skywalking-storage/docker/config.properties
0 → 100644
浏览文件 @
442c301f
# the port which storage server listening
server.port
=
{SERVER_PORT}
#
# the size of channel which storage span data
#dataconsumer.channel_size = 10
#
# the buffer size for each channel
#dataconsumer.buffer_size = 1000
#
# the size of data consumer
#dataconsumer.consumer_size = 5
#
# the path that storage data file
#datafile.path=/data/file
#
# the max size of data file (byte)
#datafile.size=50000000
#
# the auth info which registry center
#registrycenter.auth_info=
#
# the auth schema which registry center
#registrycenter.auth_schema=
#
# the registry center connect url (Default: zookeeper)
registrycenter.connect_url
=
{REGISTRY_CENTER_URL}
#
# the prefix of path that each storage node register
#registrycenter.path_prefix=/skywalking/storage_list/
#
# the level1 size of block index engine
#blockindexengine.l1_cache_size=10
#
# the cached size of finder
#finder.cached_size=10
#
# the max pool size of data source that finder operate
#finder.datasource.max_pool_size=20
#
# the min idle of data source that finder operate
#finder.datasource.min_idle=5
#
# the total size of finder
#indexoperator.finder.total=50
#
# the max idel of finder
#indexoperator.finder.idel=20
skywalking-storage-center/skywalking-storage/docker/docker-entrypoint.sh
浏览文件 @
442c301f
#!/bin/bash
#!/bin/bash
echo
"replace SERVER_PORT with
$SERVER_PORT
"
eval sed
-i
-e
's/\{SERVER_PORT\}/$SERVER_PORT/'
/usr/local/skywalking-storage/config/config.properties
echo
"replace REGISTRY_CENTER_URL with
$REGISTRY_CENTER_URL
"
eval sed
-i
-e
's/\{REGISTRY_CENTER_URL\}/$REGISTRY_CENTER_URL/'
/usr/local/skywalking-storage/config/config.properties
exec
"
$@
"
exec
"
$@
"
\ No newline at end of file
skywalking-storage-center/skywalking-storage/pom.xml
浏览文件 @
442c301f
...
@@ -106,6 +106,27 @@
...
@@ -106,6 +106,27 @@
</execution>
</execution>
</executions>
</executions>
</plugin>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
${docker.plugin.version}
</version>
<configuration>
<skipDocker>
false
</skipDocker>
<dockerDirectory>
${project.basedir}/docker
</dockerDirectory>
<imageName>
skywalking/skywalking-storage
</imageName>
<imageTags>
<imageTag>
${project.version}
</imageTag>
</imageTags>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
${project.build.directory}
</directory>
<include>
${build.finalName}.tar
</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</plugins>
</build>
</build>
</project>
</project>
skywalking-storage-center/skywalking-storage/src/main/assembly/assembly.xml
浏览文件 @
442c301f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"
>
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>
<id></id>
<formats>
<formats>
<format>
zip
</format>
<format>
tar
</format>
</formats>
</formats>
<dependencySets>
<dependencySets>
<dependencySet>
<dependencySet>
...
...
skywalking-webui/docker/Dockerfile
浏览文件 @
442c301f
...
@@ -5,7 +5,8 @@ ENV JPDA_ADDRESS="8000" \
...
@@ -5,7 +5,8 @@ ENV JPDA_ADDRESS="8000" \
MYSQL_URL=localhost:3306 \
MYSQL_URL=localhost:3306 \
MYSQL_USER=root \
MYSQL_USER=root \
MYSQL_PASSWORD=root \
MYSQL_PASSWORD=root \
REGISTRY_CENTER_URL=localhost:2181
REGISTRY_CENTER_URL=localhost:2181 \
JDBC_INIT_DB=true
COPY
skywalking /usr/local/tomcat/webapps/skywalking
COPY
skywalking /usr/local/tomcat/webapps/skywalking
COPY
classes /usr/local/tomcat/webapps/skywalking/WEB-INF/classes/
COPY
classes /usr/local/tomcat/webapps/skywalking/WEB-INF/classes/
...
...
skywalking-webui/docker/docker-entrypoint.sh
浏览文件 @
442c301f
...
@@ -10,6 +10,9 @@ eval sed -i -e 's/\{mysql-username\}/$MYSQL_USER/' /usr/local/tomcat/webapps/sky
...
@@ -10,6 +10,9 @@ eval sed -i -e 's/\{mysql-username\}/$MYSQL_USER/' /usr/local/tomcat/webapps/sky
echo
"replace mysql-password with
$MYSQL_PASSWORD
"
echo
"replace mysql-password with
$MYSQL_PASSWORD
"
eval sed
-i
-e
's/\{mysql-password\}/$MYSQL_PASSWORD/'
/usr/local/tomcat/webapps/skywalking/WEB-INF/classes/jdbc.properties
eval sed
-i
-e
's/\{mysql-password\}/$MYSQL_PASSWORD/'
/usr/local/tomcat/webapps/skywalking/WEB-INF/classes/jdbc.properties
echo
"replace jdbc_init_db with
$JDBC_INIT_DB
"
eval sed
-i
-e
's/\{init_db\}/$JDBC_INIT_DB/'
/usr/local/tomcat/webapps/skywalking/WEB-INF/classes/jdbc.properties
echo
"replace registry_center_url with
$REGISTRY_CENTER_URL
"
echo
"replace registry_center_url with
$REGISTRY_CENTER_URL
"
eval sed
-i
-e
's/\{registry_center_url\}/$REGISTRY_CENTER_URL/'
/usr/local/tomcat/webapps/skywalking/WEB-INF/classes/config.properties
eval sed
-i
-e
's/\{registry_center_url\}/$REGISTRY_CENTER_URL/'
/usr/local/tomcat/webapps/skywalking/WEB-INF/classes/config.properties
...
...
skywalking-webui/docker/jdbc.properties
浏览文件 @
442c301f
...
@@ -6,3 +6,4 @@ jdbc.maxTotal=200
...
@@ -6,3 +6,4 @@ jdbc.maxTotal=200
jdbc.maxIdle
=
50
jdbc.maxIdle
=
50
jdbc.maxWaitMillis
=
1000
jdbc.maxWaitMillis
=
1000
jdbc.defaultAutoCommit
=
false
jdbc.defaultAutoCommit
=
false
jdbc.init_db
=
{init_db}
skywalking-webui/src/main/resources/jdbc.properties
浏览文件 @
442c301f
...
@@ -6,3 +6,4 @@ jdbc.maxTotal=200
...
@@ -6,3 +6,4 @@ jdbc.maxTotal=200
jdbc.maxIdle
=
50
jdbc.maxIdle
=
50
jdbc.maxWaitMillis
=
1000
jdbc.maxWaitMillis
=
1000
jdbc.defaultAutoCommit
=
false
jdbc.defaultAutoCommit
=
false
jdbc.init_db
=
false
\ No newline at end of file
skywalking-webui/src/main/resources/spring/application-jdbc.xml
浏览文件 @
442c301f
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<property
name=
"dataSource"
ref=
"dataSource"
/>
<property
name=
"dataSource"
ref=
"dataSource"
/>
</bean>
</bean>
<jdbc:initialize-database
data-source=
"dataSource"
enabled=
"
true
"
>
<jdbc:initialize-database
data-source=
"dataSource"
enabled=
"
${jdbc.init_db}
"
>
<jdbc:script
location=
"classpath:table.mysql"
/>
<jdbc:script
location=
"classpath:table.mysql"
/>
</jdbc:initialize-database>
</jdbc:initialize-database>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录