Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Google Cloud PubSub Emulator Docker

This is the Docker image for the Google Cloud PubSub Emulator. It is intended to be used as a service on development environments (it SHOULD NOT be used in production environments).

Usage

To use this image, pull from quay.io, run the following command:

docker pull quay.io/allisson/gcloud-pubsub-emulator

to run it you can use

docker run --rm -p "8085:8085" quay.io/allisson/gcloud-pubsub-emulator

Configuration

To change the host/port the server will listen on and the directory where data files will be placed, provide the correct command line options. The following example shows how to start the Pub Sub emulator to listen in 192.168.0.9:8489 and store its files in the /pubsub directory.

docker run --rm quay.io/allisson/gcloud-pubsub-emulator start --host-port=192.168.0.9:8489 --data-dir=/pubsub

By default, the image is set to listen on 0.0.0.0:8085 and store its files in the/data directory.

Notice the usage of the PUBSUB_EMULATOR_HOST to let the pubsub client know about the emulator.

About

This is the Docker image for the Google Cloud PubSub Emulator

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages