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

Support PUBSUB_EMULATOR_HOST environment variable #491

Closed
blowmage opened this issue Jan 4, 2016 · 8 comments · Fixed by #622
Closed

Support PUBSUB_EMULATOR_HOST environment variable #491

blowmage opened this issue Jan 4, 2016 · 8 comments · Fixed by #622
Assignees
Labels
api: pubsub Issues related to the Pub/Sub API. 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@blowmage
Copy link
Contributor

blowmage commented Jan 4, 2016

gcloud-ruby should support the PUBSUB_HOST PUBSUB_EMULATOR_HOST environment variable and connect to service specified in it. This will enable connecting to an emulator running locally, similar to how the Datastore emulator works.

See GoogleCloudPlatform/gcloud-common#48

@blowmage blowmage added the api: pubsub Issues related to the Pub/Sub API. label Jan 4, 2016
@blowmage blowmage changed the title Support PUBSUB_HOST environment variable Support PUBSUB_HOST environment variable Jan 4, 2016
@blowmage blowmage self-assigned this Mar 18, 2016
@quartzmo quartzmo added this to the 0.7.0 - Logging milestone Mar 28, 2016
@quartzmo quartzmo self-assigned this Mar 28, 2016
@quartzmo
Copy link
Member

I believe the correct variable should be PUBSUB_EMULATOR_HOST, per the official docs' Setting environment variables. gcloud-node also now uses PUBSUB_EMULATOR_HOST.

@quartzmo
Copy link
Member

See googleapis/google-cloud-node#1125 for the complete gcloud-node change for this variable name.

@quartzmo quartzmo changed the title Support PUBSUB_HOST environment variable Support PUBSUB_EMULATOR_HOST environment variable Mar 28, 2016
@quartzmo
Copy link
Member

@dlorenc Be aware that in our next release, the gcloud-ruby Pub/Sub client will be using gRPC instead of Rest.

@hbchai commented that the Pub/Sub emulator also supports gRPC. (I haven't tested it yet.)

@dlorenc
Copy link

dlorenc commented Mar 28, 2016

Thanks for the update!

@quartzmo
Copy link
Member

Just an implementation note: Following the lead of gcloud-node, the gRPC connection to the emulator should be insecure (no credentials), as in this example:

stub = Helloworld::Greeter::Stub.new('localhost:50051', :this_channel_is_insecure)

@dlorenc
Copy link

dlorenc commented Apr 12, 2016

Any updates here?

@quartzmo quartzmo modified the milestone: Datastore v1beta3/GRPC Apr 12, 2016
@quartzmo
Copy link
Member

@dlorenc We are still working on #314.

@blowmage Do you think we can add this issue to the Datastore v1beta3/GRPC milestone? Do you have any time now to work on it?

@blowmage
Copy link
Contributor Author

If we get this implemented then we may want to put it in a point release before Dataset/GRPC, since we don't know when that will be ready to be released.

blowmage added a commit to blowmage/google-cloud-ruby that referenced this issue Apr 14, 2016
Use the PUBSUB_EMULATOR_HOST environment variable to indicate the
target service API is running an insecure emulator.
Add documentation for installing the emulator, and for configuring
gcloud-ruby to use the emulator.

[closes googleapis#491]
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API. 🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants