Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS support #1299

Open
marcoa6 opened this issue Aug 23, 2023 · 15 comments
Open

MacOS support #1299

marcoa6 opened this issue Aug 23, 2023 · 15 comments
Labels
feature request Feature request: request to add new features or functionality

Comments

@marcoa6
Copy link
Collaborator

marcoa6 commented Aug 23, 2023

Creating entry to track requests for MacOS support

@marcoa6 marcoa6 added the feature request Feature request: request to add new features or functionality label Aug 23, 2023
@marcoa6
Copy link
Collaborator Author

marcoa6 commented Aug 23, 2023

#844
#643
#591
#514
#509
#460

@macos-fuse-t
Copy link

brew tap macos-fuse-t/homebrew-cask
brew install fuse-t

then replace github.com/jacobsa/fuse with github.com/macos-fuse-t/jacobsa-fuse/fuse in go.mod file and you're good to go

@matteomedioli
Copy link

Hi @macos-fuse-t , thanks for your work!
About this topic, I tried to replace this

gcsfuse/go.mod

Line 13 in 7dc5c7f

github.com/jacobsa/fuse v0.0.0-20230810134708-ab21db1af836

with
github.com/macos-fuse-t/jacobsa-fuse/fuse v0.0.0-20230810134708-ab21db1af836`
but of course the version is not the right one.

I tried also
github.com/macos-fuse-t/jacobsa-fuse/fuse v1.0.28

but I get:
go: github.com/macos-fuse-t/jacobsa-fuse/[email protected]: invalid version: unknown revision ab21db1af836
or
go: github.com/macos-fuse-t/jacobsa-fuse/[email protected]: invalid version

@macos-fuse-t
Copy link

replace github.com/macos-fuse-t/jacobsa-fuse/fuse => github.com/macos-fuse-t/jacobsa-fuse master

Keep in mind I don't have any google cloud accounts and never tested it

@xsulta
Copy link

xsulta commented Sep 14, 2023

Jojs

@luckman212
Copy link

FileProvider would be required. Seems like a long chasm to cross. I would not hold your breath. Unless the GDrive team has some free engineer time they want to donate, since they (mostly) seem to have that working now.

@rsaim
Copy link

rsaim commented May 4, 2024

+1 for macos support

@Markyvas52 Markyvas52 mentioned this issue Jun 3, 2024
@siddharthab
Copy link

FileProvider would be required.

@luckman212 Can you elaborate on this comment? It seems like gcsfuse works fine on macOS if I build it myself, for example with:

version=v2.2.0; GOBIN="${PWD}" go install -ldflags="-X 'main.gcsfuseVersion=${version}'" "github.com/googlecloudplatform/gcsfuse/v2@${version}"

Are macOS users missing out on something?

@luckman212
Copy link

@siddharthab I could be misinformed. Have not tested in a long time, so I apologize if that's the case. I admit I'm hazy on the upcoming changes in macOS Sequoia, which apparently will bring a native user-mode Filesystem API that may obviate the need for kernel extensions. For now, I assumed that installing MacFUSE was still a bit of a slog due to the kext requirement.

@siddharthab
Copy link

Oh yes, we still need macfuse. But the install for macfuse is not that hard. You may need to restart your computer to lower the security setting, but other than that, the install is relatively smooth. Once macfuse is installed, gcsfuse works quite well.

@pascalwhoop
Copy link

Could this be mounted inside of a docker container maybe? I.e. mount inside of a docker container which again mounts a host dir? Just spitballing here to get a quick workaround until this is supported properly

@Tulsishah
Copy link
Collaborator

Tulsishah commented Sep 13, 2024

Hey @pascalwhoop ,

Currently, we don't support GCSFuse on MacOS as well as on docker. If you want to use GCSFuse with containers, then we suggest using the Google supported GKE Cloud Storage FUSE CSI driver.

@pascalwhoop
Copy link

@Tulsishah the idea was that we can use docker (which is linux) to mount GCS into a host's directory.

So

  1. docker run -v $USER/mountpoint:/mnt/gcs ...
  2. gcsfuse mount to /mnt/gcs inside of container

That way, the container "mounts" GCS into the host so we can then navigate the FS from macOS

@antonyharfield
Copy link

@Tulsishah the idea was that we can use docker (which is linux) to mount GCS into a host's directory.

@pascalwhoop I've been trying to get this working but without any success (I can see the files are mounted inside the container but I don't get any files in the host's directory). I've tried:

a) same folder docker run -v ./gcs:/gcs and then gcsfuse ... bucket /gcs in the container
b) parent folder docker run -v ./gcs:/gcs and then gcsfuse ... bucket /gcs/x in the container

Neither worked for me. Did you get it working?

@longtou-2024
Copy link

@antonyharfield
mount bucket as subdirectory of volume
eg) docker run -v ./gcs:/gcs and then gcsfuse ... bucket /gcs/mount

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request: request to add new features or functionality
Projects
None yet
Development

No branches or pull requests