From d18320b1ff099b3d95bb235cecf532f65ef69b8e Mon Sep 17 00:00:00 2001 From: ndr_brt Date: Mon, 12 Aug 2024 14:39:21 +0200 Subject: [PATCH] remove otel versions from dockerfile --- .../open-telemetry-runtime/Dockerfile | 4 ++-- .../open-telemetry-runtime/build.gradle.kts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/advanced/advanced-01-open-telemetry/open-telemetry-runtime/Dockerfile b/advanced/advanced-01-open-telemetry/open-telemetry-runtime/Dockerfile index 638ac796..666ec16a 100644 --- a/advanced/advanced-01-open-telemetry/open-telemetry-runtime/Dockerfile +++ b/advanced/advanced-01-open-telemetry/open-telemetry-runtime/Dockerfile @@ -1,6 +1,6 @@ FROM openjdk:17-slim WORKDIR /app -COPY build/libs/opentelemetry-javaagent-2.6.0.jar /app/opentelemetry-javaagent.jar -COPY build/libs/opentelemetry-exporter-otlp-1.40.0.jar /app/opentelemetry-exporter-otlp.jar +COPY build/libs/opentelemetry-javaagent.jar /app/opentelemetry-javaagent.jar +COPY build/libs/opentelemetry-exporter-otlp.jar /app/opentelemetry-exporter-otlp.jar COPY build/libs/connector.jar /app/connector.jar diff --git a/advanced/advanced-01-open-telemetry/open-telemetry-runtime/build.gradle.kts b/advanced/advanced-01-open-telemetry/open-telemetry-runtime/build.gradle.kts index 6f431789..8f66bec3 100644 --- a/advanced/advanced-01-open-telemetry/open-telemetry-runtime/build.gradle.kts +++ b/advanced/advanced-01-open-telemetry/open-telemetry-runtime/build.gradle.kts @@ -74,6 +74,7 @@ tasks.register("copyOpenTelemetryJar", Copy::class) { from(openTelemetry) into("build/libs") + rename { it -> it.substring(0, it.indexOfLast { it == '-' }) + ".jar"} } tasks.build {