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.
-
Google Cloud Service Account Key: Place your Google Cloud service account key file (e.g.,
sa-key.json) in thedemo/kobo/directory. -
Environment Variables: The
docker-compose.ymlfile indemo/kobo/uses environment variables directly. You can modify these values in thedocker-compose.ymlfile 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 thegcsfuseprocess.GCSFUSE_GID: Group ID for thegcsfuseprocess.FILE_MODE: File permissions for mounted files.DIR_MODE: Directory permissions for mounted directories.
Navigate to the demo/kobo/ directory and run:
docker-compose upThis will build and start the gcsfuse service, mounting your specified GCS bucket to the MOUNT_POINT inside the container.