Skip to content

Commit 60e1168

Browse files
authored
Merge pull request #13 from restatedev/parca-debuginfo
Add parca-debuginfo
2 parents eea02bb + 3c83a8f commit 60e1168

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docker/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN rustup target add \
3333
# Install `just`
3434
RUN curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
3535

36-
# Install `sccache` and `buf` in a single layer
36+
# Install `sccache`, `buf`, and `parca-debuginfo` in a single layer
3737
ARG TARGETARCH
3838
RUN arch=$(echo "$TARGETARCH" | sed s/arm64/aarch64/ | sed s/amd64/x86_64/) && \
3939
curl -LSfs https://github.com/mozilla/sccache/releases/download/v0.8.2/sccache-v0.8.2-${arch}-unknown-linux-musl.tar.gz -o sccache.tar.gz && \
@@ -42,7 +42,12 @@ RUN arch=$(echo "$TARGETARCH" | sed s/arm64/aarch64/ | sed s/amd64/x86_64/) && \
4242
cp sccache-v0.8.2-${arch}-unknown-linux-musl/sccache /usr/bin/sccache && \
4343
rm -rf sccache-v0.8.2-${arch}-unknown-linux-musl && \
4444
curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.47.2/buf-Linux-${arch}" -o "/usr/bin/buf" && \
45-
chmod +x "/usr/bin/buf"
45+
chmod +x "/usr/bin/buf" && \
46+
parca_arch=$(echo "$TARGETARCH" | sed s/amd64/x86_64/) && \
47+
curl -sL https://github.com/parca-dev/parca-debuginfo/releases/download/v0.11.0/parca-debuginfo_0.11.0_Linux_${parca_arch}.tar.gz -o parca-debuginfo.tar.gz && \
48+
tar -xzf parca-debuginfo.tar.gz parca-debuginfo && \
49+
mv parca-debuginfo /usr/bin/parca-debuginfo && \
50+
rm parca-debuginfo.tar.gz
4651

4752
# Copy musl from the prebuilt x86_64 and aarch64 images
4853
COPY --from=musl_x86_64 "/usr/local/musl" /usr/local/musl-x86_64/

0 commit comments

Comments
 (0)