-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add Datadog tracer to Dockerfiles #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
de1ec50
2be19e8
44e27b0
19d6085
3ade4fa
3a94519
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| # Map TARGETPLATFORM to Rust target | ||
| case "$TARGETPLATFORM" in | ||
| "linux/amd64") | ||
| export TRACER_ARCHITECTURE="amd64" | ||
| ;; | ||
| "linux/arm64") | ||
| export TRACER_ARCHITECTURE="arm64" | ||
| ;; | ||
| *) | ||
| echo "Unsupported platform: $TARGETPLATFORM" | ||
| exit 1 | ||
| ;; | ||
| esac | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,6 +2,10 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build | |||||||||||||||
|
|
||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need stickerlandia/.github/workflows/user-management.yml Lines 152 to 158 in b458dd2
|
||||||||||||||||
| WORKDIR /App | ||||||||||||||||
|
|
||||||||||||||||
| # Download the latest version of the tracer but don't install yet | ||||||||||||||||
| RUN TRACER_VERSION=$(curl -s \https://api.github.com/repos/DataDog/dd-trace-dotnet/releases/latest | grep tag_name | cut -d '"' -f 4 | cut -c2-) \ | ||||||||||||||||
| && curl -Lo /tmp/datadog-dotnet-apm.deb https://github.com/DataDog/dd-trace-dotnet/releases/download/v${TRACER_VERSION}/datadog-dotnet-apm_${TRACER_VERSION}_amd64.deb | ||||||||||||||||
|
||||||||||||||||
| # Download the latest version of the tracer but don't install yet | |
| RUN TRACER_VERSION=$(curl -s \https://api.github.com/repos/DataDog/dd-trace-dotnet/releases/latest | grep tag_name | cut -d '"' -f 4 | cut -c2-) \ | |
| && curl -Lo /tmp/datadog-dotnet-apm.deb https://github.com/DataDog/dd-trace-dotnet/releases/download/v${TRACER_VERSION}/datadog-dotnet-apm_${TRACER_VERSION}_amd64.deb | |
| # Download the specified version of the tracer but don't install yet | |
| ARG TRACER_VERSION=2.30.0 | |
| RUN curl -Lo /tmp/datadog-dotnet-apm.deb https://github.com/DataDog/dd-trace-dotnet/releases/download/v${TRACER_VERSION}/datadog-dotnet-apm_${TRACER_VERSION}_amd64.deb |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulled directly from your Rust example @scottgerring 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semi-related: there was an amazing article about the horror of target triples that popped up recently. Worth reading if you want to cry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naaa, all good for crying thanks :)