Skip to content

oucru-id/gcs-fuse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCS-Fuse Docker Configurations

This repository contains Docker configurations for integrating Google Cloud Storage (GCS) with a FUSE filesystem using gcs-fuse. The demo folder is specifically for demonstrating the mounting of Kobo media files.

Setup

  1. Google Cloud Service Account Key: Place your Google Cloud service account key file (e.g., sa-key.json) in the demo/kobo/ directory.

  2. Environment Variables: The docker-compose.yml file in demo/kobo/ uses environment variables directly. You can modify these values in the docker-compose.yml file itself.

    • GOOGLE_APPLICATION_CREDENTIALS: Path to your service account key within the container (e.g., /keys/sa-key.json).
    • BUCKET_NAME: The name of your GCS bucket.
    • MOUNT_POINT: The directory inside the container where the GCS bucket will be mounted.
    • GCSFUSE_UID: User ID for the gcsfuse process.
    • GCSFUSE_GID: Group ID for the gcsfuse process.
    • FILE_MODE: File permissions for mounted files.
    • DIR_MODE: Directory permissions for mounted directories.

Running the Demo

Navigate to the demo/kobo/ directory and run:

docker-compose up

This will build and start the gcsfuse service, mounting your specified GCS bucket to the MOUNT_POINT inside the container.

About

Cloud Storage Adapter for Mounting Volume Path

Topics

Resources

Stars

Watchers

Forks

Packages