-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 941 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM alpine:3.23.3@sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659
RUN apk add --no-cache clang18 cmake git gtest-dev make
ENV CXX=clang++-18
ENV CC=clang-18
WORKDIR /build
# renovate: datasource=github-releases depName=open-telemetry/opentelemetry-cpp
ENV OPENTELEMETRY_CPP_VERSION=v1.24.0
RUN \
git clone https://github.com/open-telemetry/opentelemetry-cpp.git \
--depth=1 -b "${OPENTELEMETRY_CPP_VERSION}" --single-branch && \
cd opentelemetry-cpp && \
cmake \
-B build \
-DWITH_DEPRECATED_SDK_FACTORY=OFF -DWITH_NO_DEPRECATED_CODE=ON -DWITH_OTLP_HTTP=OFF \
-DBUILD_TESTING=OFF -DWITH_BENCHMARK=OFF -DWITH_FUNC_TESTS=OFF -DWITH_EXAMPLES=OFF && \
cmake --build build -j "$(nproc)" && \
cmake --install build
WORKDIR /build/opentelemetry_resource_detectors
COPY . .
RUN cmake -B build && cmake --build build && cmake --install build && ctest --test-dir build