GCS Fuse allows you to mount a Google bucket as a file system. It’s similar to S3FS.
Setup repo
sudo tee /etc/yum.repos.d/gcsfuse.repo > /dev/null <<EOF [gcsfuse] name=gcsfuse (packages.cloud.google.com) baseurl=https://packages.cloud.google.com/yum/repos/gcsfuse-el7-x86_64 enabled=1 gpgcheck=1 repo_gpgcheck=0 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg EOF |
Yum install
sudo yum install gcsfuse |
Login to GCP and mount. Run as a user and not root.
gcloud auth login gcsfuse my-bucket /path/to/mount |
Unmount
fusermount -u /path/to/mount |