-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
* | ||
!.clang-format | ||
!.clang-tidy | ||
!cmake | ||
!CMakeLists.txt | ||
!include | ||
!src | ||
!test |
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,24 @@ | ||
FROM alpine:3.20.3 | ||
|
||
RUN apk add --no-cache clang18 cmake git gtest-dev make | ||
|
||
ENV CXX=clang++-18 | ||
ENV CC=clang-18 | ||
|
||
WORKDIR /build | ||
|
||
ENV OPENTELEMETRY_CPP_VERSION=v1.16.1 | ||
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_exporter_syslog_logs | ||
COPY . . | ||
RUN cmake -B build && cmake --build build && cmake --install build && ctest --test-dir build |