Girbons / gcloud-pubsub-emulator-docker

This is the Docker image for the Google Cloud PubSub Emulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Dockerfile 100.0%