Skip to content

Commit 6980023

Browse files
pyroscope-development-app[bot]pyroscopebotsimonswine
authored
chore(examples): update examples (#4468)
* chore(examples): update examples * Fix update examples for dotnet --------- Co-authored-by: Pyroscope Bot <[email protected]> Co-authored-by: Christian Simon <[email protected]>
1 parent 80b19cc commit 6980023

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/language-sdk-instrumentation/dotnet/fast-slow/musl.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine
22

33
WORKDIR /dotnet
44

5-
COPY --from=pyroscope/pyroscope-dotnet:0.10.0-musl /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
6-
COPY --from=pyroscope/pyroscope-dotnet:0.10.0-musl /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
5+
COPY --from=pyroscope/pyroscope-dotnet:0.13.0-musl /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
6+
COPY --from=pyroscope/pyroscope-dotnet:0.13.0-musl /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
77

88
ADD example .
99

examples/language-sdk-instrumentation/dotnet/rideshare/musl.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN sed -i -E 's|<TargetFramework>.*</TargetFramework>|<TargetFramework>net'$SDK
1717
RUN dotnet publish -o . --framework net$SDK_VERSION --runtime linux-musl-x64 --no-self-contained
1818

1919
# This fetches the SDK
20-
FROM --platform=linux/amd64 pyroscope/pyroscope-dotnet:0.10.0-musl AS sdk
20+
FROM --platform=linux/amd64 pyroscope/pyroscope-dotnet:0.13.0-musl AS sdk
2121

2222
# Runtime only image of the targetplatfrom, so the platform the image will be running on.
2323
FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/aspnet:$SDK_VERSION-alpine

tools/update_examples.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func updateJfrParser() {
288288

289289
func extractDotnetVersion() func(tag Tag) *version {
290290
return func(tag Tag) *version {
291-
re := regexp.MustCompile(`v(\d+).(\d+).(\d+)$`)
291+
re := regexp.MustCompile(`v(\d+).(\d+).(\d+)(-pyroscope)?$`)
292292
match := re.FindStringSubmatch(tag.Name)
293293
if match != nil {
294294
fmt.Println(len(match), match)

0 commit comments

Comments
 (0)