From 9348a9f0b27c0099335aafbc2c1ead13039a6c0e Mon Sep 17 00:00:00 2001 From: Guillaume Deconinck Date: Thu, 19 Mar 2026 13:04:44 +0900 Subject: [PATCH] chore: debug image --- debianWithDD.Dockerfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/debianWithDD.Dockerfile b/debianWithDD.Dockerfile index 69ec45c4..edfc8c14 100644 --- a/debianWithDD.Dockerfile +++ b/debianWithDD.Dockerfile @@ -1,3 +1,4 @@ + # This Dockerfile is based on the debian.Dockerfile and adds the ddprof tool to the image. # Usage: @@ -36,8 +37,8 @@ RUN ARCH_IN_URL=$(case "${ARCH}" in \ tar xvf ddprof-linux.tar.xz && \ mv ddprof/bin/ddprof /ddprof -# Use the distroless base image for final image -FROM gcr.io/distroless/cc-debian12 +# Use the distroless :debug variant which includes busybox shell +FROM gcr.io/distroless/cc-debian12:debug # Set the git repository url and commit hash for DD ARG GIT_REPO_URL @@ -57,4 +58,10 @@ COPY --from=builder --chown=nonroot:nonroot /nittei /nittei COPY --from=builder --chown=nonroot:nonroot /nittei-migrate /nittei-migrate COPY --from=builder --chown=nonroot:nonroot /ddprof /ddprof -CMD ["/ddprof", "--preset", "cpu_live_heap", "/nittei"] \ No newline at end of file +# Enable ddprof debug logging +CMD ["/ddprof", \ + "--preset", "cpu_live_heap", \ + "--log-mode", "stdout", \ + "--log-level", "debug", \ + "--show-config", \ + "/nittei"] \ No newline at end of file