Created
September 29, 2017 08:59
-
-
Save LauraRichter/e05ee0c2e336460f73f38cf5f47bd556 to your computer and use it in GitHub Desktop.
Mount GCS directory in GCE box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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