fsouza / fake-gcs-server

Google Cloud Storage emulator & testing library.
https://pkg.go.dev/github.com/fsouza/fake-gcs-server/fakestorage?tab=doc
BSD 2-Clause "Simplified" License
1.04k stars 210 forks source link

Initial empty bucket #1645

Open axos88 opened 3 months ago

axos88 commented 3 months ago

To more easily use this for integration tests via docker-compose, I'd like to ask for a command-line option that would create an initial, empty bucket.

kevinrathgeber commented 3 months ago

Somewhat related, I'm trying to create buckets if they don't exist as part of my init.sh via docker-compose and I'm running into issues. We're using Go and the client for GCS requires a project name but it doesn't seem to matter?