No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 470dde3 Jan 2, 2018
Permalink
Failed to load latest commit information.
Dockerfile update version Jan 3, 2018
LICENSE import from johnjelinek/pushpin-docker Feb 24, 2016
README.md update version Jan 3, 2018

README.md

Pushpin Dockerfile

This repository contains Dockerfile of Pushpin for Docker published to the public Docker Hub Registry.

Pushpin Version: 1.17.1

Base Docker Image

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull fanout/pushpin

Alternatively, you can build an image from the Dockerfile:

docker build -t fanout/pushpin .

Usage

docker run -dt -p 7999:7999 --name pushpin --rm fanout/pushpin

Attach app to accept traffic

By default, Pushpin routes traffic to host "app" port 8080.

  1. Start a backend webserver container that exposes port 8080.

  2. Start a pushpin container by linking to the backend container:

docker run -dt -p 7999:7999 --name pushpin --link backend:app fanout/pushpin

Open http://<host>:7999 to see the result.

You can override the target with -e. For example:

docker run -dt -p 7999:7999 --name pushpin --link backend:app -e "target=app:8001" fanout/pushpin

Attach app to respond to traffic

  1. Start a responder container by linking to the pushpin container:
docker run -d --link pushpin:pushpin ubuntu bash -c "apt-get update; apt-get install -y curl; while true; do curl -s -d '{ \"items\": [ { \"channel\": \"test\", \"formats\": { \"http-stream\": { \"content\": \"hello there\n\" } } } ] }' http://pushpin:5561/publish ; sleep 1; done"