Dockerfiles: download opentelemetry-javaagent.jar
externally
#686
Labels
enhancement
New feature or request
opentelemetry-javaagent.jar
externally
#686
WHAT
Currently the
opentelemetry-javaagent.jar
is downloaded inside each docker image. For that, we first must installcUrl
from Alpine's apk repository. This should be changed so that theopentelemetry-javaagent.jar
is downloaded outside the docker image, and copied into the image upon build.WHY
Code quality analysis tools force us to use explicit versions of
cUrl
. The version ofcUrl
changes quite frequently, and Alpine seems to not keep older versions. This means, whenever there is a version upgrade in Alpine, our build pipeline breaks.Since
cUrl
is installed manually inside the image withapk
, dependabot doesn't pick it up either. This causes random failures in our deployment test pipelines.Furthermore, downloading the same JAR multiple time is not necessary anyway.
HOW
Create another gradle task that downloads the
opentelemetry-javaagent.jar
before the docker task, if it's not already present. For example:The text was updated successfully, but these errors were encountered: