Short Description
Maven with Oracle JDK, Chrome and Pinpoint Agent
Full Description
pinpoint-chrome-maven-oraclejdk
Pinpoint Agent, Chrome, Maven and Oracle JDK Dockerfile
Add the pinpoint-agent configuration to your project's pom.xml file
...
<build>
<plugins>
...
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<argLine>-javaagent:/opt/pinpoint-agent/pinpoint-bootstrap.jar -Dpinpoint.agentId=YOURAGENTID -Dpinpoint.applicationName=YOURAPPNAME</argLine>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
...
See an example of complete pom.xml file.
To run container
docker run -it --rm \
-e COLLECTOR_IP="192.168.0.18" \
-e PROFILER_APPLICATIONSERVERTYPE="TOMCAT" \
-e PROFILER_TOMCAT_CONDITIONAL_TRANSFORM="false" \
-v /PATH/TO/YOUR/JAVA/MAVEN/APP/:/opt/app/ \
-v /home/marcosamm/.m2/repository:/root/.m2/repository \
marcosamm/pinpointagent-chrome-maven-oraclejdk \
/bin/sh -c "cd /opt/app/; xvfb-run mvn clean install verify"
See another example using Dockerfile
Notes
- The following environment variables can be used to set pinpoint-agent configuration properties (pinpoint.config):
- COLLECTOR_IP
- PROFILER_APPLICATIONSERVERTYPE
- PROFILER_TOMCAT_CONDITIONAL_TRANSFORM
- PROFILER_SAMPLING_RATE
- PROFILER_INCLUDE
- PROFILER_ENTRYPOINT
- PROFILER_JSON_JSONLIB
- PROFILER_JSON_JACKSON
- PROFILER_JSON_GSON
- You can map a custom configuration file as a volume with the option: -v /path/to/pinpoint.config:/assets/pinpoint-agent/pinpoint.config