CiscoDevNet/appdynamics-docker-images

Build repository for AppDynamics certified Docker Store images - Issue with appd-java-agent deploy/java-init.yaml

zhouyaoji opened this issue · 1 comments

Note: I am filing this on behalf of an AppD employee who filed an internal doc ticket. The doc team does not own or work on this repository.

Here is the description of the Jira issue the employee filed:

Build repository for AppDynamics certified Docker Store images - Issue with appd-java-agent deploy/java-init.yaml

The example initContainer fails since /opt/temp does not exist.

With reference to https://github.com/Appdynamics/appdynamics-docker-images/tree/master/appd-java-agent

An example is provided to show how the init container method works in deploy/java-init.yaml at https://github.com/Appdynamics/appdynamics-docker-images/blob/master/appd-java-agent/deploy/java-init.yaml

The example initContainer uses

initContainers:

name: appd-agent
command:
cp
-ra
/opt/temp/.
/opt/appd/

To copy files from the image appdynamics/java-agent:v4.5 at /opt/temp to /opt/appd/

The image appdynamics/java-agent:v4.5 and later versions appdynamics/java-agent:20.3.0 place the unzipped Java Agent files in /opt/appdynamics.

The example initContainer fails since /opt/temp does not exist.

/ # # sh in to runnng image appdynamics/java-agent:20.3.0
/ # pwd
/
/ # ls /opt/appdynamics/
conf jackson-databind-2.10.3.jar.asc readme.txt.asc
jackson-annotations-2.10.3.jar javaagent.jar uaruleanalyzer.jar
jackson-annotations-2.10.3.jar.asc javaagent.jar.asc uaruleanalyzer.jar.asc
jackson-core-2.10.3.jar licenses ver20.3.0.29587
jackson-core-2.10.3.jar.asc multi-release
jackson-databind-2.10.3.jar readme.txt
/ #

Thanks - David Ryder, originally filed this observation in Jira - David Ryder