Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cherrypick][branch-3.1-cs][Feature][Issue 39849]add datadog java/cpp profiling lib (#40652) #40845

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docker/dockerfiles/artifacts/artifact.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ COPY . /build/starrocks
WORKDIR /build/starrocks
RUN --mount=type=cache,target=/root/.m2/ STARROCKS_VERSION=${RELEASE_VERSION} BUILD_TYPE=${BUILD_TYPE} MAVEN_OPTS=${MAVEN_OPTS} ./build.sh --be --use-staros --clean -j `nproc`

FROM ubuntu:22.04 as datadog-downloader

RUN apt-get update -y && apt-get install -y --no-install-recommends wget tar xz-utils

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

# Get ddprof for BE profiling
RUN imagearch=$(arch | sed 's/aarch64/arm64/; s/x86_64/amd64/') \
&& wget --no-check-certificate "https://github.com/DataDog/ddprof/releases/download/v0.15.3/ddprof-0.15.3-${imagearch}-linux.tar.xz" -O ddprof-linux.tar.xz \
&& tar xvf ddprof-linux.tar.xz && mkdir -p /datadog/ \
&& mv ddprof/bin/ddprof /datadog/ \
&& chmod 755 /datadog/ddprof

FROM busybox:latest
ARG RELEASE_VERSION
Expand All @@ -51,4 +64,7 @@ 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

COPY --from=datadog-downloader /datadog/dd-java-agent.jar /release/fe_artifacts/fe/datadog/dd-java-agent.jar
COPY --from=datadog-downloader /datadog/ddprof /release/be_artifacts/be/datadog/ddprof

WORKDIR /release
Loading