Skip to content

Commit db9a558

Browse files
committed
put debug print of archs at the top
1 parent fefc562 commit db9a558

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

examples/Example.AutoInstrumentation/Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ RUN apt-get update && apt-get install -y unzip curl strace
33
#USER $APP_UID
44
WORKDIR /app
55
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
614

715
FROM base AS otel
816
ARG OTEL_VERSION=1.7.0
@@ -46,15 +54,6 @@ COPY --from=build_plugin /src/.artifacts/bin/Elastic.OpenTelemetry.AutoInstrumen
4654
COPY --from=build_plugin /src/.artifacts/bin/Elastic.OpenTelemetry.AutoInstrumentationPlugin/release_net8.0/Elastic.OpenTelemetry.AutoInstrumentationPlugin.dll /app/otel/net/
4755
COPY --from=build_plugin /src/.artifacts/bin/Elastic.OpenTelemetry/release_net8.0/Elastic.OpenTelemetry.dll /app/otel/net/
4856

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-
5857
ENV CORECLR_ENABLE_PROFILING="1"
5958
ENV CORECLR_PROFILER="{918728DD-259F-4A6A-AC2B-B85E1B658318}"
6059
ENV CORECLR_PROFILER_PATH="/app/otel/linux-${TARGETARCH}/OpenTelemetry.AutoInstrumentation.Native.so"

0 commit comments

Comments
 (0)