Sign inSign up

gingonic/docker-pushpin

By gingonic

•Updated almost 8 years ago

Pushpin

Image
0

207

gingonic/docker-pushpin repository overview

⁠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"

Tag summary

Content type

Image

Digest

Size

144 MB

Last updated

almost 8 years ago

docker pull gingonic/docker-pushpin