forked from signalfx/splunk-otel-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-ghcr
17 lines (14 loc) · 945 Bytes
/
Dockerfile-ghcr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# To build an auto-instrumentation image for Java, please:
# - Grant the necessary access to the jar. `chmod 644 /splunk-otel-javaagent.jar`
# - Symlink '/splunk-otel-javaagent.jar' to `/javaagent.jar` to support compatability with the
# https://github.com/open-telemetry/opentelemetry-operator project.
# - For this docker image to be used for auto-instrumentation by container injection, we use the
# busybox image because it contains the Linux command cp which must be available.
FROM busybox
LABEL org.opencontainers.image.source="https://github.com/signalfx/splunk-otel-java"
LABEL org.opencontainers.image.description="Splunk Distribution of OpenTelemetry Java Instrumentation"
ARG RELEASE_VER
ENV RELEASE_VER=$RELEASE_VER
ADD https://github.com/signalfx/splunk-otel-java/releases/download/${RELEASE_VER}/splunk-otel-javaagent.jar /
RUN chmod 644 /splunk-otel-javaagent.jar
RUN ln -s /splunk-otel-javaagent.jar /javaagent.jar