An open API service indexing awesome lists of open source software.

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.

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
```