root vor 3 Jahren
Ursprung
Commit
201122ccb7
3 geänderte Dateien mit 7 neuen und 2 gelöschten Zeilen
  1. 5 1
      Dockerfile
  2. 2 1
      resin.properties
  3. BIN
      skywalking-agent.tgz

+ 5 - 1
Dockerfile

@@ -1,7 +1,11 @@
 FROM hub.evbj.easou.com/qa/book-api:v1c
 
 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"]
-CMD ["supervisord"]
+CMD ["supervisord"]

+ 2 - 1
resin.properties

@@ -77,6 +77,7 @@ setuid_group  :
 
 # Arg passed directly to the JVM
 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_mode    : -server
 # watchdog_jvm_args  :
@@ -175,4 +176,4 @@ rest_admin_enable : false
 # admin_password : danien#$%niresin
 
 # 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

BIN
skywalking-agent.tgz