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

Cloud storage - How to emulate it locally? #4897

Closed
david-gang opened this issue Feb 18, 2018 · 11 comments
Closed

Cloud storage - How to emulate it locally? #4897

david-gang opened this issue Feb 18, 2018 · 11 comments
Assignees
Labels
api: storage Issues related to the Cloud Storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@david-gang
Copy link
Contributor

I wanted to know what your recommended way is to emulate google cloud storage locally, if at all.
In stackoverflow there is a question regarding this: https://stackoverflow.com/questions/37542530/is-there-google-cloud-storage-emulator
There are two answers:

  • Use the in memory emulator - This is just available with the java library
  • Use minio - I am not sure how to specify google cloud to use minio

A third option would to mock classes from google cloud storage but which classes should be mocked?

@chemelnucfin
Copy link
Contributor

Hi David, we are going to use #4840 to keep track of emulator issues as it seems like we would need a broader discussion. Please feel free to follow there.

@selfiebot
Copy link

selfiebot commented Jul 5, 2018 via email

@tseaver tseaver added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. api: storage Issues related to the Cloud Storage API. labels Jul 5, 2018
@selfiebot
Copy link

selfiebot commented Aug 8, 2018 via email

@selfiebot
Copy link

selfiebot commented Aug 8, 2018 via email

@selfiebot
Copy link

selfiebot commented Aug 8, 2018 via email

@selfiebot
Copy link

selfiebot commented Aug 16, 2018 via email

@vbrvk
Copy link

vbrvk commented Jun 13, 2020

You can try this one https://github.com/fsouza/fake-gcs-server

@eweitz
Copy link

eweitz commented Aug 7, 2020

Maintainers, how suitable is googleapis/python-storage/tests/perf/benchwrapper.py for locally emulating GCS? Its README seems to suggest that is possible at some level.

Having a relatively Python-native way to emulate Google Cloud Storage would be quite valuable.

@joejean
Copy link

joejean commented Jan 12, 2021

For those of you still looking for a solution for this. I just tried https://gitlab.com/potato-oss/google-cloud/gcloud-storage-emulator/ and it seems to be working fine for me :).

@oittaa
Copy link

oittaa commented Feb 15, 2021

For those of you still looking for a solution for this. I just tried https://gitlab.com/potato-oss/google-cloud/gcloud-storage-emulator/ and it seems to be working fine for me :).

Thanks! Unfortunately it's a dead project or something. I tried to submit pull requests, but never got any comments or anything back. So I forked it and now the version in my repository has these additional features:

  • PATCH requests
  • object metadata
  • checksums
  • correct datetime formats

https://github.com/oittaa/gcp-storage-emulator and pre-built Docker images are located at https://hub.docker.com/r/oittaa/gcp-storage-emulator

@leonardbinet
Copy link

for those interested in this topic, I found this repo as well which seems well maintained: https://github.com/fullstorydev/emulators

cf https://www.fullstory.com/blog/open-sourcing-our-google-cloud-emulators/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

9 participants