https://github.com/daemonite/slack-relay
Simple containerised relay for Docker Hub web hooks to Slack channel
https://github.com/daemonite/slack-relay
Last synced: about 2 months ago
JSON representation
Simple containerised relay for Docker Hub web hooks to Slack channel
- Host: GitHub
- URL: https://github.com/daemonite/slack-relay
- Owner: Daemonite
- Created: 2015-10-27T04:16:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-28T01:14:25.000Z (over 9 years ago)
- Last Synced: 2025-01-19T07:25:14.541Z (3 months ago)
- Language: Python
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slack Relay
A simple relay of Docker Hub post build webhook payloads to a Slack Channel.
Available on Docker Hub at `daemonite/slack-relay:latest`. Configured via ENV variables.
## Installation
1. set up your outgoing Docker Hub webhooks to point at your Slack-Relay URL; for example, http://slack-relay.myweb.com/relay
2. set up an Incoming Webhook for your Slack team
3. run the Slack Relay container with environment variables pointing at your Slack integration## Environment Variables
**SLACK_HOOK**
The URL of the Incoming Webhook integration you have set up for your Slack team.**RELAY_PORT**
Defaults to port 80. Only needed if you intend to relay on a different port.## Sample Tutum Stack
```
slack-relay:
image: 'daemonite/slack-relay:latest'
environment:
- 'SLACK_HOOK=https://hooks.slack.com/services/MY/SLACK/HOOK'
- RELAY_PORT=80
- VIRTUAL_HOST=slack-relay.someday.io
tags:
- prod
```## Building Locally
If you have Vagrant installed, you can run up a local development environment for the container with `vagrant up slacker`
(h/t https://github.com/matsengrp/relay)