Use a Dockerfile
This option uses a Dockerfile to copy the Java Agent to the Docker image at build time. To use the option, create a single image that contains both the application and Java Agent binaries.
To copy the agent into the application image during the Docker image build:
- Download and Unzip the Java Agent
- Redirect Agent Output to Stdout
- Copy the Agent Binaries to the Image
- Set the Java Agent Environment Variables
- Add the -javaagent Argument to the Startup Command
- (OpenShift only) Set the APPDYNAMICS_AGENT_UNIQUE_HOST_ID Environment Variable.
- (On-Premises Controller only) Copy the Controller Certs to the Image.