Skip to content

Commit 9348a9f

Browse files
chore: debug image
1 parent 83256aa commit 9348a9f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

debianWithDD.Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# This Dockerfile is based on the debian.Dockerfile and adds the ddprof tool to the image.
23

34
# Usage:
@@ -36,8 +37,8 @@ RUN ARCH_IN_URL=$(case "${ARCH}" in \
3637
tar xvf ddprof-linux.tar.xz && \
3738
mv ddprof/bin/ddprof /ddprof
3839

39-
# Use the distroless base image for final image
40-
FROM gcr.io/distroless/cc-debian12
40+
# Use the distroless :debug variant which includes busybox shell
41+
FROM gcr.io/distroless/cc-debian12:debug
4142

4243
# Set the git repository url and commit hash for DD
4344
ARG GIT_REPO_URL
@@ -57,4 +58,10 @@ COPY --from=builder --chown=nonroot:nonroot /nittei /nittei
5758
COPY --from=builder --chown=nonroot:nonroot /nittei-migrate /nittei-migrate
5859
COPY --from=builder --chown=nonroot:nonroot /ddprof /ddprof
5960

60-
CMD ["/ddprof", "--preset", "cpu_live_heap", "/nittei"]
61+
# Enable ddprof debug logging
62+
CMD ["/ddprof", \
63+
"--preset", "cpu_live_heap", \
64+
"--log-mode", "stdout", \
65+
"--log-level", "debug", \
66+
"--show-config", \
67+
"/nittei"]

0 commit comments

Comments
 (0)