All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Containers, R2 - Mount R2 buckets in Containers

7mo ago

Source

CloudflareContainers, R2 - Mount R2 buckets in Containerscloudflare.com
Snippet from the RSS feed
Containers now support mounting R2 buckets as FUSE (Filesystem in Userspace) volumes, allowing applications to interact with R2 using standard filesystem operations. Common use cases include: Bootstrapping containers with datasets, models, or dependencies for sandboxes and agent environments Persisting user configuration or application state without managing downloads Accessing large static files without bloating container images or downloading at startup FUSE adapters like tigrisfs , s3fs , and gcsfuse can be installed in your container image and configured to mount buckets at startup. FROM alpine:3.20 # Install FUSE and dependencies RUN apk update && \ apk add --no-cache ca-certificates fuse curl bash # Install tigrisfs RUN ARCH=$(uname -m) && \ if [ "$ARCH" = "x86_64" ]; then ARCH= "amd64" ; fi && \ if [ "$ARCH" = "aarch64" ]; then ARCH= "arm64" ; fi && \ VERSION=$(curl -s

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.