webhookdocker

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2020 License: Apache-2.0

README

Webhook Docker

A Keybase, Slack and WebEx integration to notify Docker Events via incoming webhook

Keybase webhook setup

  • Add webhookbot from list of Bots
  • Create a new webhook for sending messages into the current conversation. You must supply a name as well to identify the webhook. Example: !webhook create alerts
  • Get the new URL to send webhooks

Docker events on keybase

Slack webhook setup

Docker events on keybase

WebEx webhook setup

Docker events on WebEx

Run

Capture docker events and send to Keybase:

$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro \
logocomune/webhook-docker:1.0.0 --keybase-endpoint=https://bots.keybase.io/webhookbot/....

Capture docker events and send to Slack:

$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro \
logocomune/webhook-docker:1.0.0 --slack-endpoint=https://hooks.slack.com/services/....

Capture docker events and send to WebEx:

$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro \
logocomune/webhook-docker:1.0.0 --webex-endpoint=https://api.ciscospark.com/v1/webhooks/incoming/....
Application options
flag Environment type Default
--node-name WD_NODE_NAME String Node name. If empty use the hostname
--docker-show-running WD_DOCKER_SHOW_RUNNING Boolean false Send running container to webhook
--docker-listen-container-events WD_DOCKER_LISTEN_CONTAINER_EVENTS Boolean true Listen for container events
--docker-listen-network-events WD_DOCKER_LISTEN_NETWORK_EVENTS Boolean true Listen for network events
--docker-listen-volume-events WD_DOCKER_LISTEN_VOLUME_EVENTS Boolean true Listen for volume events
--keybase-endpoint WD_KEYBASE_ENDPOINT String Keybase endpoint for webhook
--slack-endpoint WD_SLACK_ENDPOINT String Slack endpoint for webhook
--webex-endpoint WD_WEBEX_ENDPOINT String WebEx endpoint for webhook

Directories

Path Synopsis
cmd
webhook-docker command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL