-
Notifications
You must be signed in to change notification settings - Fork 61
/
Dockerfile
24 lines (20 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ARG SOURCE_CONTAINER
FROM ${SOURCE_CONTAINER}
# Add the Splunk Distribution of OpenTelemetry .NET
ARG SPLUNK_OTEL_DOTNET_VERSION=v1.8.0
ADD https://github.com/signalfx/splunk-otel-dotnet/releases/download/${SPLUNK_OTEL_DOTNET_VERSION}/splunk-opentelemetry-dotnet-linux-glibc.zip ./splunk-otel-dotnet.zip
RUN apt update
RUN apt -y install zip
ARG INSTALL_DIR=/opt/splunk/otel/dotnet
RUN mkdir -p ${INSTALL_DIR}
RUN unzip splunk-otel-dotnet.zip -d ${INSTALL_DIR}
RUN rm splunk-otel-dotnet.zip
RUN mkdir -p /var/log/opentelemetry/dotnet
ENV CORECLR_ENABLE_PROFILING=1
ENV CORECLR_PROFILER={918728DD-259F-4A6A-AC2B-B85E1B658318}
ENV CORECLR_PROFILER_PATH=${INSTALL_DIR}/linux-x64/OpenTelemetry.AutoInstrumentation.Native.so
ENV DOTNET_ADDITIONAL_DEPS=${INSTALL_DIR}/AdditionalDeps
ENV DOTNET_SHARED_STORE=${INSTALL_DIR}/store
ENV DOTNET_STARTUP_HOOKS=${INSTALL_DIR}/net/OpenTelemetry.AutoInstrumentation.StartupHook.dll
ENV OTEL_DOTNET_AUTO_HOME=${INSTALL_DIR}
ENV OTEL_DOTNET_AUTO_PLUGINS="Splunk.OpenTelemetry.AutoInstrumentation.Plugin, Splunk.OpenTelemetry.AutoInstrumentation"