Skip to content

Commit fefc562

Browse files
committed
move to TARGETARCH
1 parent 919d28f commit fefc562

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

examples/Example.AutoInstrumentation/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,18 @@ COPY --from=build_plugin /src/.artifacts/bin/Elastic.OpenTelemetry.AutoInstrumen
4646
COPY --from=build_plugin /src/.artifacts/bin/Elastic.OpenTelemetry.AutoInstrumentationPlugin/release_net8.0/Elastic.OpenTelemetry.AutoInstrumentationPlugin.dll /app/otel/net/
4747
COPY --from=build_plugin /src/.artifacts/bin/Elastic.OpenTelemetry/release_net8.0/Elastic.OpenTelemetry.dll /app/otel/net/
4848

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
4957

5058
ENV CORECLR_ENABLE_PROFILING="1"
5159
ENV CORECLR_PROFILER="{918728DD-259F-4A6A-AC2B-B85E1B658318}"
52-
ENV CORECLR_PROFILER_PATH="/app/otel/linux-arm64/OpenTelemetry.AutoInstrumentation.Native.so"
60+
ENV CORECLR_PROFILER_PATH="/app/otel/linux-${TARGETARCH}/OpenTelemetry.AutoInstrumentation.Native.so"
5361
ENV OTEL_DOTNET_AUTO_PLUGINS="Elastic.OpenTelemetry.AutoInstrumentationPlugin.ElasticAutoInstrumentationPlugin, Elastic.OpenTelemetry.AutoInstrumentationPlugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=069ca2728db333c1"
5462

5563
#ENV COREHOST_TRACE=1

0 commit comments

Comments
 (0)