Skip to content

Commit

Permalink
Remember to strip debuginfo from restatectl and restate bins (#2642)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkleeman authored Feb 5, 2025
1 parent ad0c30e commit 20ff091
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ FROM builder AS upload-false

FROM builder AS upload-true
RUN $(just --set arch $TARGETARCH --evaluate _arch)-linux-gnu-objcopy --only-keep-debug target/restate-server target/restate-server.debug
RUN $(just --set arch $TARGETARCH --evaluate _arch)-linux-gnu-objcopy --strip-debug target/restate-server
RUN $(just --set arch $TARGETARCH --evaluate _arch)-linux-gnu-objcopy --strip-debug target/restate-server
RUN $(just --set arch $TARGETARCH --evaluate _arch)-linux-gnu-objcopy --strip-debug target/restatectl
RUN $(just --set arch $TARGETARCH --evaluate _arch)-linux-gnu-objcopy --strip-debug target/restate
RUN --mount=type=secret,id=parca parca-debuginfo upload --store-address=grpc.polarsignals.com:443 --bearer-token-file=/run/secrets/parca target/restate-server.debug

FROM upload-$UPLOAD_DEBUGINFO AS upload
Expand Down

0 comments on commit 20ff091

Please sign in to comment.