mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 13:45:52 +03:00
[GH-ISSUE #894] Sharing volume on macOS: "failed to determine if storage supports xattr" #137
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#137
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tdeg on GitHub (Aug 18, 2022).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/894
Hi. I am trying to mount a volume between my host machine and docker container. My goal is be able to see the data that is getting uploaded outputted to a folder in my project's directory. After reading through the codebase my current configuration looks like this:
When running compose up, the container crashes with the following error:
If I remove the volume from the storage definition the container builds and I can access the buckets via cURL. Any help is greatly appreciated.
@fsouza commented on GitHub (Aug 18, 2022):
Hmm yeah that won't work with the way we store metadata in the filesystem backend (we use extended attributes, which are not supported by Docker for Mac). What we usually recommend is to use the shared volume as the source and let fake-gcs-server manage the storage root, but in that case you wouldn't be able to see the files/directories in the host. Can you provide more details on your use case so we can figure something out?
@tdeg commented on GitHub (Aug 18, 2022):
Ah okay. For the time being I will verify uploads via cURL but my use case is web scraping so I would love to be able to see the actual data that's being scraped outputted to a local dir. I have other ways of doing this but I was trying to simulate GCP much as possible locally.
@fsouza commented on GitHub (Aug 18, 2022):
We do have a fallback in place for Windows where xattr isn't supported at all (we store the metadata in a JSON file). Perhaps what we could do is fallback automatically to the json format whenever the filesystem root doesn't support xattr, instead of assuming that anything that's not Windows supports it. Shouldn't be too hard I think
@fsouza commented on GitHub (Aug 18, 2022):
@tdeg can you try #897?
@tdeg commented on GitHub (Aug 18, 2022):
@fsouza that fixed it! 🙂 thanks a ton!
@fsouza commented on GitHub (Aug 19, 2022):
Closed via #897. New release coming soon.