File tree 1 file changed +8
-9
lines changed
examples/Example.AutoInstrumentation
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,14 @@ RUN apt-get update && apt-get install -y unzip curl strace
3
3
# USER $APP_UID
4
4
WORKDIR /app
5
5
RUN chown app:app .
6
+ ARG TARGETPLATFORM
7
+ ARG TARGETARCH
8
+ ARG TARGETVARIANT
9
+ RUN printf "I'm building for TARGETPLATFORM=${TARGETPLATFORM}" \
10
+ && printf ", TARGETARCH=${TARGETARCH}" \
11
+ && printf ", TARGETVARIANT=${TARGETVARIANT} \n " \
12
+ && printf "With uname -s : " && uname -s \
13
+ && printf "and uname -m : " && uname -m
6
14
7
15
FROM base AS otel
8
16
ARG OTEL_VERSION=1.7.0
@@ -46,15 +54,6 @@ COPY --from=build_plugin /src/.artifacts/bin/Elastic.OpenTelemetry.AutoInstrumen
46
54
COPY --from=build_plugin /src/.artifacts/bin/Elastic.OpenTelemetry.AutoInstrumentationPlugin/release_net8.0/Elastic.OpenTelemetry.AutoInstrumentationPlugin.dll /app/otel/net/
47
55
COPY --from=build_plugin /src/.artifacts/bin/Elastic.OpenTelemetry/release_net8.0/Elastic.OpenTelemetry.dll /app/otel/net/
48
56
49
- ARG TARGETPLATFORM
50
- ARG TARGETARCH
51
- ARG TARGETVARIANT
52
- RUN printf "I'm building for TARGETPLATFORM=${TARGETPLATFORM}" \
53
- && printf ", TARGETARCH=${TARGETARCH}" \
54
- && printf ", TARGETVARIANT=${TARGETVARIANT} \n " \
55
- && printf "With uname -s : " && uname -s \
56
- && printf "and uname -m : " && uname -m
57
-
58
57
ENV CORECLR_ENABLE_PROFILING="1"
59
58
ENV CORECLR_PROFILER="{918728DD-259F-4A6A-AC2B-B85E1B658318}"
60
59
ENV CORECLR_PROFILER_PATH="/app/otel/linux-${TARGETARCH}/OpenTelemetry.AutoInstrumentation.Native.so"
You can’t perform that action at this time.
0 commit comments