Skip to content

Superbalist/gcloud-pubsub-emulator-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud PubSub Emulator Docker

Docker Pulls Docker Build Status Docker Automated buil

This is the Docker image for the Google Cloud PubSub Emulator

Usage

To use this image, pull from Docker Hub with the following command:

docker pull adilsoncarvalho/gcloud-pubsub-emulator:latest

or you can specify the desired version of it as follows:

docker pull adilsoncarvalho/gcloud-pubsub-emulator:162.0.0-alpine

Then to run it you can use

docker run --rm -p "8085:8085" adilsoncarvalho/gcloud-pubsub-emulator

You can also use it on your docker-compose.yml file

version: '2'
services:
  application:
    image: ...
    environment:
    - PUBSUB_EMULATOR_HOST="emulator:8085"
    # ...other configurations...
    depends_on:
    - emulator
  emulator:
    image: adilsoncarvalho/gcloud-pubsub-emulator
    ports:
    - "8085:8085"

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published