https://github.com/datashaman/slack-docker
A simple integration of docker events and slack messaging.
https://github.com/datashaman/slack-docker
Last synced: about 1 year ago
JSON representation
A simple integration of docker events and slack messaging.
- Host: GitHub
- URL: https://github.com/datashaman/slack-docker
- Owner: datashaman
- Created: 2017-12-23T10:03:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-28T05:11:06.000Z (over 8 years ago)
- Last Synced: 2025-02-06T05:43:43.376Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slack-docker
A simple integration of docker events and slack messaging.
## Configure
Set the following variables in the environment:
* SLACK_TOKEN
* DOCKER_HOST - Optional. See docker CLI documentation.
Create a config file from the example:
```
mkvirtualenv -p /usr/bin/python3 -r requirements.txt
cp config.yml.example config.yml
vim config.yml
```
## Serve
```
python app.py
```
## Docker
```
docker pull datashaman/slack-docker
docker run -it --rm \
-e SLACK_TOKEN=${SLACK_TOKEN} \
-v ${PWD}/config.yml:/var/app/config.yml \
-v /var/run/docker.sock:/var/run/docker.sock \
datashaman/slack-docker
```