Dynatrace-AppMon-Docker icon indicating copy to clipboard operation
Dynatrace-AppMon-Docker copied to clipboard

openjdk8 is missing from Dynatrace-Agent image

Open curd0 opened this issue 6 years ago • 3 comments

I was planning to use "dynatrace/agent" image as a base image for my Java application expecting it contains a Java 8 distribution. However the "dynatrace/agent" (7.0, latest) image doesn't contain Java. Even though the Dockerfile has following

  • Line #23 defines "openjdk8-jre-base" as one of the dependencies to be deployed during image creation.
  • The Line #30 runs the "apk add" command that's supopsed to deploy it.

no "openjdk8-jre-base" is available in the image. Any attempts to execute "java" result in "java not found" error.

Older "dynatrace/agent:6.5" image has no such problem, but it's bundled with older "openjdk7".

curd0 avatar Jan 03 '18 00:01 curd0

I am also facing the same issue. Can some one look into this? Do I need to file any support ticket. Please suggest.

ruchamatkar avatar Jan 03 '18 14:01 ruchamatkar

@BlazejT - could you please suggest? I have already opened a support ticket with Dynatrace.

ruchamatkar avatar Jan 03 '18 14:01 ruchamatkar

The issue with missing Java could be solved if the "dynatrace/agent" image was created with using

FROM openjdk:alpine - which is Alpine Linux with Java already deployed

instead of

FROM alpine:3.5 - which is a "naked" Alpine Linux

curd0 avatar Jan 03 '18 20:01 curd0