Sign inSign up

martynas/gcloud-pubsub-client

By martynas

•Updated over 8 years ago

Docker image with Google Cloud Pub Sub python example code

Image
0

50K+

martynas/gcloud-pubsub-client repository overview

⁠GCloud PubSub Client build-badge microb-badge pulls-badge stars-badge

Docker image with Google Cloud PubSub Python client⁠.

⁠Usage with docker-compose

Add the following to your docker-compose.yml:

services:
  gcloud-pubsub-client:
    image: martynas/gcloud-pubsub-client
    links:
      - "gcloud-pubsub-emulator"
    environment:
      - "PUBSUB_PROJECT_ID=test-project"
      - "PUBSUB_EMULATOR_HOST=gcloud-pubsub-emulator:8538"
    command: publisher.py test-project create testTopic
  gcloud-pubsub-emulator:
    image: bigtruedata/gcloud-pubsub-emulator
    ports:
      - "8538:8538"
    command: start --host-port=0.0.0.0:8538 --data-dir=/data

Then start containers with

docker-compose up gcloud-pubsub-client

The client container will start after the emulator and it will create the testTopic topic.

Tag summary

Content type

Image

Digest

Size

126.9 MB

Last updated

over 8 years ago

docker pull martynas/gcloud-pubsub-client