Skip to content

Commit 2a310e1

Browse files
authored
chore(examples): update update_examples.go to use new tags (#3849)
* chore(examples): update update_examples.go to use new tags * v0.9.4
1 parent 71187cc commit 2a310e1

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

docs/sources/configure-client/language-sdks/dotnet.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ The Pyroscope server can be a local server for development or a remote server fo
4545
1. Obtain `Pyroscope.Profiler.Native.so` and `Pyroscope.Linux.ApiWrapper.x64.so` from the [latest tarball](https://github.com/pyroscope-io/pyroscope-dotnet/releases/):
4646

4747
```bash
48-
curl -s -L https://github.com/grafana/pyroscope-dotnet/releases/download/v0.9.2-pyroscope/pyroscope.0.9.2-glibc-x86_64.tar.gz | tar xvz -C .
48+
curl -s -L https://github.com/grafana/pyroscope-dotnet/releases/download/v0.9.4-pyroscope/pyroscope.0.9.4-glibc-x86_64.tar.gz | tar xvz -C .
4949
```
5050

5151
Or copy them from the [latest docker image](https://hub.docker.com/r/pyroscope/pyroscope-dotnet/tags). We have `glibc` and `musl` versions:
5252
```dockerfile
53-
COPY --from=pyroscope/pyroscope-dotnet:0.9.2-glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
54-
COPY --from=pyroscope/pyroscope-dotnet:0.9.2-glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
53+
COPY --from=pyroscope/pyroscope-dotnet:0.9.4-glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
54+
COPY --from=pyroscope/pyroscope-dotnet:0.9.4-glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
5555
````
5656

5757
2. Set the following required environment variables to enable profiler

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0
22

33
WORKDIR /dotnet
44

5-
COPY --from=pyroscope/pyroscope-dotnet:0.9.2-glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
6-
COPY --from=pyroscope/pyroscope-dotnet:0.9.2-glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
5+
COPY --from=pyroscope/pyroscope-dotnet:0.9.4-glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
6+
COPY --from=pyroscope/pyroscope-dotnet:0.9.4-glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
77

88
ADD example .
99

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

+2-2
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.9.2-musl /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
6-
COPY --from=pyroscope/pyroscope-dotnet:0.9.2-musl /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
5+
COPY --from=pyroscope/pyroscope-dotnet:0.9.4-musl /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
6+
COPY --from=pyroscope/pyroscope-dotnet:0.9.4-musl /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
77

88
ADD example .
99

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

+1-1
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-x64 --no-self-contained
1818

1919
# This fetches the SDK
20-
FROM --platform=linux/amd64 pyroscope/pyroscope-dotnet:0.9.2-glibc AS sdk
20+
FROM --platform=linux/amd64 pyroscope/pyroscope-dotnet:0.9.4-glibc 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

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

+1-1
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.9.2-musl AS sdk
20+
FROM --platform=linux/amd64 pyroscope/pyroscope-dotnet:0.9.4-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

examples/language-sdk-instrumentation/dotnet/web-new/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/sdk:6.0
33

44
WORKDIR /dotnet
55

6-
COPY --from=pyroscope/pyroscope-dotnet:0.9.2-glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
7-
COPY --from=pyroscope/pyroscope-dotnet:0.9.2-glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
6+
COPY --from=pyroscope/pyroscope-dotnet:0.9.4-glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
7+
COPY --from=pyroscope/pyroscope-dotnet:0.9.4-glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
88

99
ADD example .
1010

tools/update_examples.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func extractRSVersion(module string) func(tag Tag) *version {
228228

229229
func extractDotnetVersion() func(tag Tag) *version {
230230
return func(tag Tag) *version {
231-
re := regexp.MustCompile(`v(\d+).(\d+).(\d+)-pyroscope`)
231+
re := regexp.MustCompile(`v(\d+).(\d+).(\d+)$`)
232232
match := re.FindStringSubmatch(tag.Name)
233233
if match != nil {
234234
fmt.Println(len(match), match)

0 commit comments

Comments
 (0)