Docker image with Google Cloud Pub Sub python example code
50K+
Docker image with Google Cloud PubSub Python client.
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.
Content type
Image
Digest
Size
126.9 MB
Last updated
over 8 years ago
docker pull martynas/gcloud-pubsub-client