Sign inSign up

rkhtech/newrelic-java-agent

By rkhtech

Updated over 9 years ago

NewRelic Jar files for running java agent

Image
0

1.6K

rkhtech/newrelic-java-agent repository overview

Instructions for use

The main purpose of this container is to provide the necessary JAR files through volume mapping to an application container running Java. That way the Java application does not need to be rebuilt, and control of running the app is handled at runtime, not at build time.

Start the container. (The container does not need to be running)

docker run --name newrelic-java-agent rkhtech/newrelic-java-agent

Start another container that maps the newrelic agent jar file

docker run --rm -it --volumes-from newrelic-java-agent ubuntu bash

Example running rancher-server with the NewRelic Agent running

docker run -d \
	--restart=unless-stopped -p 8080:8080 \
	--name rancher-server \
	--volumes-from newrelic-java-agent \
	-e JAVA_OPTS='-javaagent:/newrelic/newrelic.jar' \
	-e NEW_RELIC_LICENSE_KEY=9999999999999999999999999999999999999999 \
	-e NEW_RELIC_APP_NAME='Rancher-Server-Test-Java-Agent' \
	rancher/server

Tag summary

Content type

Image

Digest

Size

9.1 MB

Last updated

over 9 years ago

docker pull rkhtech/newrelic-java-agent