Skip to content

Commit 31716d7

Browse files
authored
Always create a debug symbols script in docker image (#3940)
1 parent ecd8463 commit 31716d7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ RUN --mount=type=cache,target=/var/cache/sccache \
6060
mv target/$(just arch=$TARGETARCH libc=gnu print-target)/release/restate-server target/restate-server && \
6161
mv target/$(just arch=$TARGETARCH libc=gnu print-target)/release/restatectl target/restatectl && \
6262
mv target/$(just arch=$TARGETARCH libc=gnu print-target)/release/restate target/restate
63+
RUN cp docker/scripts/no-restate-debug-symbols.sh target/download-restate-debug-symbols.sh
6364

6465
FROM builder AS upload-true
6566
RUN --mount=type=secret,id=parca --mount=type=cache,target=/var/cache/sccache \
@@ -97,7 +98,7 @@ COPY --from=upload /restate/LICENSE /LICENSE
9798
# copy OS roots
9899
COPY --from=upload /etc/ssl /etc/ssl
99100
COPY --from=upload /restate/target/restate-server /usr/local/bin
100-
COPY --from=upload /restate/target/*.sh /usr/local/bin
101+
COPY --from=upload /restate/target/download-restate-debug-symbols.sh /usr/local/bin
101102
COPY --from=upload /restate/target/restatectl /usr/local/bin
102103
COPY --from=upload /restate/target/restate /usr/local/bin
103104
WORKDIR /
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
echo "No debug symbols were uploaded at build time"

0 commit comments

Comments
 (0)