Skip to content

Commit

Permalink
add datadog java/cpp profiling lib
Browse files Browse the repository at this point in the history
Signed-off-by: Mingmin Xu <[email protected]>
  • Loading branch information
mingmxu committed Feb 2, 2024
1 parent 24309c1 commit 14a3ae5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docker/dockerfiles/artifacts/artifact.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ RUN --mount=type=cache,target=/root/.m2/ STARROCKS_VERSION=${RELEASE_VERSION} BU

FROM busybox:latest
ARG RELEASE_VERSION
ARG TARGETARCH

LABEL org.opencontainers.image.source="https://github.com/starrocks/starrocks"
LABEL org.starrocks.version=${RELEASE_VERSION:-"UNKNOWN"}
Expand All @@ -51,4 +52,14 @@ COPY --from=fe-builder /build/starrocks/output /release/fe_artifacts
COPY --from=be-builder /build/starrocks/output /release/be_artifacts
COPY --from=broker-builder /build/starrocks/fs_brokers/apache_hdfs_broker/output /release/broker_artifacts

# download the latest dd-java-agent
ADD 'https://dtdg.co/latest-java-tracer' /release/fe_artifacts/fe/datadog/dd-java-agent.jar

# Get ddprof for BE profiling
ADD https://github.com/DataDog/ddprof/releases/download/v0.15.3/ddprof-0.15.3-${TARGETARCH}-linux.tar.xz ddprof-linux.tar.xz
RUN tar xvf ddprof-linux.tar.xz && mkdir -p /release/be_artifacts/be/datadog/ \
&& mv ddprof/bin/ddprof /release/be_artifacts/be/datadog/ \
&& chmod 755 /release/be_artifacts/be/datadog/ddprof \
&& rm -f ddprof-linux.tar.xz

WORKDIR /release

0 comments on commit 14a3ae5

Please sign in to comment.