You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
942 B

1 year ago
1 year ago
  1. #!/bin/sh
  2. cd ..
  3. cd ..
  4. #Backend/
  5. WORKDIR=`pwd`
  6. export WORKDIR
  7. CLASSPATH=.:$WORKDIR:$WORKDIR/lib/*:$WORKDIR/conf:$WORKDIR/lang
  8. export CLASSPATH
  9. MAINCLASS=@mainClass@
  10. export MAINCLASS
  11. sh /dwsidecar/sidecar/bin/docker/dockerRun.sh &
  12. if test -z "$pinpoint_appname";
  13. then
  14. java -cp $CLASSPATH @jvmArgs@ $MAINCLASS
  15. else
  16. export AGENT_PATH=/agent_pinpoint/pinpoint-bootstrap.jar
  17. export AGENT_NAME=$pinpoint_appname
  18. export AGENT_ID=$pinpoint_id
  19. if [ -n "$collector_ip" ]; then
  20. export AGENT_COLLECTOR="-Dprofiler.transport.grpc.collector.ip=$collector_ip"
  21. fi
  22. export AGENT_MAIN="-Dprofiler.springboot.bootstrap.main=$MAINCLASS"
  23. export AGENT_OPTS="-javaagent:$AGENT_PATH $AGENT_COLLECTOR -Dpinpoint.agentId=$AGENT_ID -Dpinpoint.applicationName=$AGENT_NAME $AGENT_MAIN"
  24. echo debug: `grep profiler.springboot.bootstrap.main /agent_pinpoint/profiles/release/pinpoint.config`
  25. java $AGENT_OPTS -cp $CLASSPATH @jvmArgs@ $MAINCLASS
  26. fi