Skip to content

Instantly share code, notes, and snippets.

@LauraRichter
Created September 29, 2017 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LauraRichter/e05ee0c2e336460f73f38cf5f47bd556 to your computer and use it in GitHub Desktop.
Save LauraRichter/e05ee0c2e336460f73f38cf5f47bd556 to your computer and use it in GitHub Desktop.
Mount GCS directory in GCE box
## First install gcsfuse:
(https://github.com/GoogleCloudPlatform/gcsfuse/blob/master/docs/installing.md)
* Add the gcsfuse distribution URL as a package source and import its public key:
> export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s`
> echo "deb http://packages.cloud.google.com/apt $GCSFUSE_REPO main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list
> curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
* Update the list of packages available and install gcsfuse.
> sudo apt-get update
> sudo apt-get install gcsfuse
## make directory to use as mount point
> mkdir mydir
## mount with gscfuse
> gcsfuse --only-dir mydir-remote-on-prodigy-bucket prodigy-bucket-whatever mydir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment