micronaut-projects / micronaut-eclipsestore

Apache License 2.0
1 stars 2 forks source link

Feat/add google cloud firestore support #85

Open SimonFrauenschuh opened 1 month ago

SimonFrauenschuh commented 1 month ago

Add Support for Azure Blob Storage

Following the code and tests of the Micronaut implementation of the azure blob-storage-client, I've implemented something similar for Firebase.

Problem

All tests - if run individually - pass. But if I run them via ./gradlew check, FirestoreStorageSpec fails when trying to access the firestore-emulator docker-image with the following error-message:

Caused by: com.google.api.gax.rpc.UnavailableException: io.grpc.StatusRuntimeException: UNAVAILABLE: Network closed for unknown reason
anandjaisy commented 1 month ago

@SimonFrauenschuh Does this also support gcp cloud storage https://cloud.google.com/storage?hl=en

SimonFrauenschuh commented 1 month ago

@SimonFrauenschuh Does this also support gcp cloud storage https://cloud.google.com/storage?hl=en

EclipseStore has no support (yet) for google cloud storage so the short answer is no because you can't use the Firestore client that is required by EclipseStore.

Currently, there seems to be no direct support, but you can try using the S3Client and accessing googles XML-Endpoint. According to the documentation I've read until now there might be a change that because there is a S3-compatible endpoint you can use (Micronaut) EclipseStore for AWS S3.

(Maybe this tutorial works for you? (Note: You have to use the S3Client, not the AmazonS3))