-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add container automation for auto instrumentation (#147)
- Add container automation for autoinstrumentation. - move release targets after container push
- Loading branch information
Showing
2 changed files
with
72 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Based on the opentelemetry dotnet operator image: | ||
# https://github.com/open-telemetry/opentelemetry-operator/blob/main/autoinstrumentation/dotnet/Dockerfile | ||
# To build locally you need to call: | ||
# - ./build.sh redistribute | ||
# This ensures the distribution is locally available under .artifacts/elastic-distribution | ||
|
||
FROM busybox as downloader | ||
|
||
WORKDIR /autoinstrumentation | ||
|
||
COPY ".artifacts/elastic-distribution/elastic-dotnet-instrumentation-linux-glibc-x64.zip" . | ||
COPY ".artifacts/elastic-distribution/elastic-dotnet-instrumentation-linux-musl-x64.zip" . | ||
|
||
RUN unzip elastic-dotnet-instrumentation-linux-glibc-x64.zip &&\ | ||
unzip elastic-dotnet-instrumentation-linux-musl-x64.zip "linux-musl-x64/*" -d . &&\ | ||
rm elastic-dotnet-instrumentation-linux-glibc-x64.zip elastic-dotnet-instrumentation-linux-musl-x64.zip &&\ | ||
chmod -R go+r . | ||
|
||
FROM busybox | ||
|
||
COPY --from=downloader /autoinstrumentation /autoinstrumentation |