-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
408ab35
commit ce96601
Showing
10 changed files
with
94 additions
and
79 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
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,27 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine | ||
|
||
WORKDIR /dotnet | ||
|
||
COPY --from=pyroscope/pyroscope-dotnet:0.8.7-musl /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so | ||
COPY --from=pyroscope/pyroscope-dotnet:0.8.7-musl /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so | ||
|
||
ADD example . | ||
|
||
RUN dotnet publish -o . -r $(dotnet --info | grep RID | cut -b 6- | tr -d ' ') | ||
|
||
ENV CORECLR_ENABLE_PROFILING=1 | ||
ENV CORECLR_PROFILER={BD1A650D-AC5D-4896-B64F-D6FA25D6B26A} | ||
ENV CORECLR_PROFILER_PATH=/dotnet/Pyroscope.Profiler.Native.so | ||
ENV LD_PRELOAD=/dotnet/Pyroscope.Linux.ApiWrapper.x64.so | ||
|
||
|
||
ENV PYROSCOPE_APPLICATION_NAME=fast-slow.dotnet.app | ||
ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040/ | ||
ENV PYROSCOPE_LOG_LEVEL=debug | ||
ENV PYROSCOPE_PROFILING_ENABLED=1 | ||
ENV PYROSCOPE_PROFILING_ALLOCATION_ENABLED=true | ||
ENV PYROSCOPE_PROFILING_CONTENTION_ENABLED=true | ||
ENV PYROSCOPE_PROFILING_EXCEPTION_ENABLED=true | ||
|
||
|
||
CMD ["/dotnet/example"] |
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
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,27 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine | ||
|
||
WORKDIR /dotnet | ||
|
||
COPY --from=pyroscope/pyroscope-dotnet:0.8.7-musl /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so | ||
COPY --from=pyroscope/pyroscope-dotnet:0.8.7-musl /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so | ||
|
||
|
||
ADD example . | ||
|
||
RUN dotnet publish -o . -r $(dotnet --info | grep RID | cut -b 6- | tr -d ' ') | ||
|
||
ENV CORECLR_ENABLE_PROFILING=1 | ||
ENV CORECLR_PROFILER={BD1A650D-AC5D-4896-B64F-D6FA25D6B26A} | ||
ENV CORECLR_PROFILER_PATH=/dotnet/Pyroscope.Profiler.Native.so | ||
ENV LD_PRELOAD=/dotnet/Pyroscope.Linux.ApiWrapper.x64.so | ||
|
||
ENV PYROSCOPE_APPLICATION_NAME=rideshare.dotnet.app | ||
ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040 | ||
ENV PYROSCOPE_LOG_LEVEL=debug | ||
ENV PYROSCOPE_PROFILING_ENABLED=1 | ||
ENV PYROSCOPE_PROFILING_ALLOCATION_ENABLED=true | ||
ENV PYROSCOPE_PROFILING_CONTENTION_ENABLED=true | ||
ENV PYROSCOPE_PROFILING_EXCEPTION_ENABLED=true | ||
|
||
|
||
CMD ["dotnet", "/dotnet/example.dll"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.