Pinpoint agent, Firefox, Maven and OpenJDK Dokerfile
...
<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.
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-firefox-maven-openjdk \
/bin/sh -c "cd /opt/app/; xvfb-run mvn clean install verify"
See another example using Dockerfile
- 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