Skip to content

GCP Pub/Sub emulator for local development with Kubernetes.

Notifications You must be signed in to change notification settings

flow-lab/flow-pubsub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flow PubSub

Flow PubSub is a versatile and lightweight Google Pub/Sub emulator, designed to streamline local development workflows in both Kubernetes and Docker Compose environments. This emulator is an ideal tool for developers seeking to test Pub/Sub functionalities without deploying to a live cloud environment.

Discover on DockerHub

Explore and download the emulator from our DockerHub repository:https://hub.docker.com/repository/docker/flowlab/flow-pubsub

Local development/testing

2. With Minikube

  1. Start minikube running: minikube start

  2. Initialize Minikube with local docker process: eval $(minikube docker-env)

  3. Apply minikube configuration

    kubectl apply -f minikube.yml

    output:

    deployment.apps/pubsub-deployment created
    service/pubsub created
    
  4. Get pubsub host url end export as local env without http://

    HOST=$(minikube service pubsub --url)
    export PUBSUB_EMULATOR_HOST=${HOST#"http://"}
    
  5. Export project id: export PUBSUB_PROJECT_ID="your-project-id"

Next you can fire up minikube dashboard and use flow to create topic, subscriptions and publish messages. For example: flow pubsub create-topic -t test

Open Source License

Flow PubSub is open source and available under the MIT License, promoting free and unrestricted use to foster innovation and collaboration.