gcloud-pubsub-emulator
gcloud-pubsub-emulator copied to clipboard
Creating subscriptions with latest local build
When I use your image messagebird/gcloud-pubsub-emulator:latest everything works for me as described, including the ability to create topics, etc with the environment variables.
However when I build the image myself and run it with the environment set to create a topic and subscription (same values that worked with your image) it creates the topic then gets the following error when creating a subscription. clipped message from the log follows:
Exception in thread "grpc-default-executor-10" java.lang.NoClassDefFoundError: java/time/Duration
[pubsub] at com.google.cloud.pubsub.testing.v1.MessageBacklog.
Is it possible that some of the dependencies of this dockerfile have drifted?
To reproduce you can use your own examples from the readme. (for creating topic, subscriptions, etc. )
+1 I'm facing the same issue
I've got a fix, I'll open up a PR shortly
@parity-error https://github.com/marcelcorso/gcloud-pubsub-emulator/pull/10
You can find how I got it working in my PR here, really simple change, just updating the JDK version did the trick.
Nice. Thank you!