-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
10 changed files
with
117 additions
and
32 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
25 changes: 25 additions & 0 deletions
25
aspire4j/aspire4j-extensions-spring/src/main/resources/templates/opentelemetry/Dockerfile
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,25 @@ | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE} | ||
RUN echo "Base image is ${BASE_IMAGE}" | ||
MAINTAINER microsoft.com | ||
USER root | ||
ADD https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar /opentelemetry-javaagent.jar | ||
# Install any necessary tools (if not already available in the base image) | ||
RUN apt-get update && apt-get install -y \ | ||
sed \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
USER cnb | ||
RUN API_VERSION=$(sed -n '/^[[:space:]]*api = "[^"]*"/{s/^[[:space:]]*api = "\([^"]*\)".*/\1/; /^[^[:space:]]*$/ p; q;}' /layers/config/metadata.toml) \ | ||
&& echo "API_VERSION=$API_VERSION" \ | ||
# Create or append content to metadata.toml using echo and redirection \ | ||
&& { \ | ||
echo ''; \ | ||
echo '[[buildpacks]]'; \ | ||
echo ' id="aspire-otel"'; \ | ||
echo ' version = "0.0.1"'; \ | ||
echo " api = \"$API_VERSION\""; \ | ||
} >> /layers/config/metadata.toml | ||
RUN mkdir -p /layers/aspire-otel/jre/env.launch | ||
RUN cat /layers/config/metadata.toml | ||
COPY JAVA_TOOL_OPTIONS.delim /layers/aspire-otel/jre/env.launch/JAVA_TOOL_OPTIONS.delim | ||
COPY JAVA_TOOL_OPTIONS.append /layers/aspire-otel/jre/env.launch/JAVA_TOOL_OPTIONS.append |
1 change: 1 addition & 0 deletions
1
...e4j-extensions-spring/src/main/resources/templates/opentelemetry/JAVA_TOOL_OPTIONS.append
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 @@ | ||
-javaagent:/opentelemetry-javaagent.jar |
1 change: 1 addition & 0 deletions
1
...re4j-extensions-spring/src/main/resources/templates/opentelemetry/JAVA_TOOL_OPTIONS.delim
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 @@ | ||
|
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
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