Skip to content

Commit

Permalink
update patched install script and docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Jul 31, 2024
1 parent 4ad77c7 commit 6a15ef9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/patch-dotnet-auto-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ else
fi

rm -rf "$OTEL_DOTNET_AUTO_HOME"
unzip -q "$TMPFILE" -d "$OTEL_DOTNET_AUTO_HOME"
unzip -q "$LOCAL_PATH" -d "$OTEL_DOTNET_AUTO_HOME"
3 changes: 1 addition & 2 deletions examples/Example.AutoInstrumentation/distribution.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ RUN dotnet publish "${_PROJECT}.csproj" -c Release -a $TARGETARCH --no-restore
FROM build AS final

COPY ".artifacts/elastic-distribution" /distro/elastic
COPY ".artifacts/otel-distribution" /distro/otel

COPY --from=build /app/example /app/example

ENV OTEL_DOTNET_AUTO_HOME="/app/otel"
# Use already downloaded release assets (call ./build.sh redistribute locally if you run this dockerfile manually)
RUN DOWNLOAD_DIR="/distro/elastic/1.7.0" sh /distro/otel/1.7.0/otel-dotnet-auto-install.sh
RUN DOWNLOAD_DIR="/distro/elastic" sh /distro/elastic/elastic-dotnet-auto-install.sh

ENV OTEL_LOG_LEVEL=debug
ENTRYPOINT ["sh", "/app/otel/instrument.sh", "dotnet", "/app/example/Example.AutoInstrumentation.dll"]

0 comments on commit 6a15ef9

Please sign in to comment.