mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
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
25 lines
606 B
Docker
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"]
|