Files
Lucas ManningandgVisor bot 71c6e4f8a4 Create gcsfuse test image.
This will provide a reliable way to evaluate gVisor's compatibility with
GCSFuse features.

We can't add this as an automated test because it requires gcloud creds.

PiperOrigin-RevId: 896017311
2026-04-07 11:57:22 -07:00

25 lines
606 B
Docker

FROM golang:1.24-bullseye AS builder
# Install gcsfuse from GitHub
RUN go install github.com/googlecloudplatform/gcsfuse/v2@latest
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y \
fuse \
curl \
ca-certificates \
python3 \
psmisc \
&& rm -rf /var/lib/apt/lists/*
# Copy gcsfuse from builder
COPY --from=builder /go/bin/gcsfuse /usr/local/bin/gcsfuse
# Copy the gcsfuse test script
COPY gcsfuse_test.sh /usr/local/bin/gcsfuse_test.sh
RUN chmod +x /usr/local/bin/gcsfuse_test.sh
# Default to running gcsfuse test
ENTRYPOINT ["/usr/local/bin/gcsfuse_test.sh"]