Skip to content

Commit

Permalink
Merge pull request grpc#800 from a11r/a11r-patch-1
Browse files Browse the repository at this point in the history
Update examples/pubsub/README
  • Loading branch information
yang-g committed Feb 25, 2015
2 parents 8542900 + 85f9963 commit ad60177
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions examples/pubsub/README
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Experimental example code, likely to change.
Users should not attempt to run this code till this warning is removed.

C++ Client implementation for Cloud Pub/Sub service
(https://developers.google.com/apis-explorer/#p/pubsub/v1beta1/).

Expand All @@ -12,19 +15,7 @@ be created with scope "https://www.googleapis.com/auth/cloud-platform" as below:
gcloud compute instances create instance-name
--image debian-7 --scopes https://www.googleapis.com/auth/cloud-platform

Google TLS cert is required to run the client, which can be downloaded from
Chrome browser.

To run the client from GCE:
make pubsub_client
GRPC_DEFAULT_SSL_ROOTS_FILE_PATH="Google TLS cert" bins/opt/pubsub_client
--project_id="your project id"

A service account credential is required to run the client from other
environments, which can be generated as a JSON key file from
https://console.developers.google.com/project/. To run the client with a service
account credential:

GRPC_DEFAULT_SSL_ROOTS_FILE_PATH="Google TLS cert" bins/opt/pubsub_client
--project_id="your project id"
--service_account_key_file="absolute path to the JSON key file"
To run the client:
make pubsub_client
bins/opt/pubsub_client --project_id="your project id"

0 comments on commit ad60177

Please sign in to comment.