Skip to content

Commit

Permalink
Ensure we package arm64 inside the container used for the k8s operator (
Browse files Browse the repository at this point in the history
#154)

If this works we need to contribute this back upstream as well.
  • Loading branch information
Mpdreamz authored Sep 6, 2024
1 parent 710b207 commit adcfd85
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ FROM busybox as downloader

WORKDIR /autoinstrumentation

COPY ".artifacts/elastic-distribution/elastic-dotnet-instrumentation-linux-glibc-arm64.zip" .
COPY ".artifacts/elastic-distribution/elastic-dotnet-instrumentation-linux-glibc-x64.zip" .
COPY ".artifacts/elastic-distribution/elastic-dotnet-instrumentation-linux-musl-arm64.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-glibc-arm64.zip "linux-arm64/*" -d .&&\
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 &&\
unzip elastic-dotnet-instrumentation-linux-musl-arm64.zip "linux-musl-arm64/*" -d . &&\
unzip elastic-dotnet-instrumentation-linux-glibc-arm64.zip "store/arm64/*" -d .&&\
rm elastic-dotnet-instrumentation-*.zip &&\
chmod -R go+r .

FROM busybox
Expand Down

0 comments on commit adcfd85

Please sign in to comment.