Install perf on collab image (#8910)

Max Brunsfeld and Conrad created

Release Notes:

- N/A

---------

Co-authored-by: Conrad <conrad@zed.dev>

Change summary

Dockerfile                            | 9 ++++++---
crates/collab/k8s/collab.template.yml | 4 ----
2 files changed, 6 insertions(+), 7 deletions(-)

Detailed changes

Dockerfile 🔗

@@ -1,6 +1,6 @@
 # syntax = docker/dockerfile:1.2
 
-FROM rust:1.76-bullseye as builder
+FROM rust:1.76-bookworm as builder
 WORKDIR app
 COPY . .
 
@@ -20,9 +20,12 @@ RUN --mount=type=cache,target=./target \
     cp /app/target/release/collab /app/collab
 
 # Copy collab server binary to the runtime image
-FROM debian:bullseye-slim as runtime
+FROM debian:bookworm-slim as runtime
 RUN apt-get update; \
-    apt-get install -y --no-install-recommends libcurl4-openssl-dev ca-certificates
+    apt-get install -y --no-install-recommends \
+    libcurl4-openssl-dev \
+    ca-certificates \
+    linux-perf
 WORKDIR app
 COPY --from=builder /app/collab /app/collab
 COPY --from=builder /app/crates/collab/migrations /app/migrations

crates/collab/k8s/collab.template.yml 🔗

@@ -78,10 +78,6 @@ spec:
               port: 8080
             initialDelaySeconds: 1
             periodSeconds: 1
-          resources:
-            requests:
-              cpu: "20"
-              memory: "20Gi"
           env:
             - name: HTTP_PORT
               value: "8080"