浏览代码

[CI SKIP]

root 3 年之前
父节点
当前提交
201122ccb7
共有 3 个文件被更改,包括 7 次插入2 次删除
  1. 5 1
      Dockerfile
  2. 2 1
      resin.properties
  3. 二进制
      skywalking-agent.tgz

+ 5 - 1
Dockerfile

@@ -1,7 +1,11 @@
 FROM hub.evbj.easou.com/qa/book-api:v1c
 FROM hub.evbj.easou.com/qa/book-api:v1c
 
 
 COPY resin.properties /app/soft/resin-4.0.65/conf/resin.properties 
 COPY resin.properties /app/soft/resin-4.0.65/conf/resin.properties 
+COPY skywalking-agent.tgz /tmp/skywalking-agent.tgz
+
+
+RUN tar -zxf /tmp/skywalking-agent.tgz -C /app/soft/ && rm -f /tmp/skywalking-agent.tgz
 
 
 
 
 ENTRYPOINT ["entrypoint.sh"]
 ENTRYPOINT ["entrypoint.sh"]
-CMD ["supervisord"]
+CMD ["supervisord"]

+ 2 - 1
resin.properties

@@ -77,6 +77,7 @@ setuid_group  :
 
 
 # Arg passed directly to the JVM
 # Arg passed directly to the JVM
 jvm_args  : -Xmx8192m -Xms8192m -Xmn3072m  -XX:MaxPermSize=512m
 jvm_args  : -Xmx8192m -Xms8192m -Xmn3072m  -XX:MaxPermSize=512m
+jvm_args  : -javaagent:/app/soft/skywalking-agent/skywalking-agent.jar
 #jvm_args  : -Xmx4096m -Xms4096m -Xmn1024m -XX:PermSize=128m -XX:MaxPermSize=256m
 #jvm_args  : -Xmx4096m -Xms4096m -Xmn1024m -XX:PermSize=128m -XX:MaxPermSize=256m
 # jvm_mode    : -server
 # jvm_mode    : -server
 # watchdog_jvm_args  :
 # watchdog_jvm_args  :
@@ -175,4 +176,4 @@ rest_admin_enable : false
 # admin_password : danien#$%niresin
 # admin_password : danien#$%niresin
 
 
 # Enable reading EC2 user data as resin properties
 # Enable reading EC2 user data as resin properties
-# properties_import_url : http://169.254.169.254/latest/user-data
+# properties_import_url : http://169.254.169.254/latest/user-data

二进制
skywalking-agent.tgz