mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-27 09:18:43 +00:00
add errbot
This commit is contained in:
parent
829b53ee8c
commit
19a7b572b7
@ -58,6 +58,7 @@ A collection of delicious docker recipes.
|
|||||||
- [x] cadvisor
|
- [x] cadvisor
|
||||||
- [x] casperjs :+1:
|
- [x] casperjs :+1:
|
||||||
- [x] collectd
|
- [x] collectd
|
||||||
|
- [x] errbot
|
||||||
- [x] freeradius
|
- [x] freeradius
|
||||||
- [x] h2o
|
- [x] h2o
|
||||||
- [x] httpbin :+1:
|
- [x] httpbin :+1:
|
||||||
|
35
errbot/Dockerfile
Normal file
35
errbot/Dockerfile
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
#
|
||||||
|
# Dockerfile for errbot
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM alpine
|
||||||
|
MAINTAINER kev <noreply@easypi.info>
|
||||||
|
|
||||||
|
RUN set -xe \
|
||||||
|
&& apk add --no-cache build-base \
|
||||||
|
libffi-dev \
|
||||||
|
openssl-dev \
|
||||||
|
python3 \
|
||||||
|
python3-dev \
|
||||||
|
&& pip3 install errbot \
|
||||||
|
hypchat \
|
||||||
|
irc \
|
||||||
|
pyasn1 \
|
||||||
|
pyasn1-modules \
|
||||||
|
python-telegram-bot \
|
||||||
|
slackclient \
|
||||||
|
sleekxmpp \
|
||||||
|
&& adduser -s /bin/sh -D errbot \
|
||||||
|
&& cd /home/errbot \
|
||||||
|
&& wget http://errbot.io/en/latest/_downloads/config-template.py \
|
||||||
|
&& apk del --purge build-base \
|
||||||
|
libffi-dev \
|
||||||
|
openssl-dev \
|
||||||
|
python3-dev
|
||||||
|
|
||||||
|
USER errbot
|
||||||
|
WORKDIR /home/errbot
|
||||||
|
RUN errbot --init
|
||||||
|
VOLUME /home/errbot
|
||||||
|
|
||||||
|
ENTRYPOINT ["errbot"]
|
42
errbot/README.md
Normal file
42
errbot/README.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
errbot
|
||||||
|
======
|
||||||
|
|
||||||
|
![](http://errbot.io/en/latest/_static/errbot.png)
|
||||||
|
|
||||||
|
[Errbot][1] is a chatbot, a daemon that connects to your favorite chat service
|
||||||
|
and brings your tools into the conversation.
|
||||||
|
|
||||||
|
## docker-compose.yml
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
errbot:
|
||||||
|
image: vimagick/errbot
|
||||||
|
volumes:
|
||||||
|
- ./data:/home/errbot
|
||||||
|
tty: yes
|
||||||
|
restart: always
|
||||||
|
```
|
||||||
|
|
||||||
|
## up and running
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ mkdir -m 777 data
|
||||||
|
$ docker-compose run --rm errbot --init
|
||||||
|
$ vim data/config.py
|
||||||
|
$ docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
## chat-ops
|
||||||
|
|
||||||
|
```
|
||||||
|
master [8:50 PM] !tryme
|
||||||
|
errbot [8:50 PM] It works!
|
||||||
|
|
||||||
|
master [8:50 PM] !help
|
||||||
|
errbot [8:50 PM] All commands ...
|
||||||
|
|
||||||
|
master [8:55 PM] !uptime
|
||||||
|
errbot [8:55 PM] I've been up for 6 minutes
|
||||||
|
```
|
||||||
|
|
||||||
|
[1]: http://errbot.io
|
22
errbot/data/config.py
Normal file
22
errbot/data/config.py
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import logging
|
||||||
|
|
||||||
|
# This is a minimal configuration to get you started with the Text mode.
|
||||||
|
# If you want to connect Errbot to chat services, checkout
|
||||||
|
# the options in the more complete config-template.py from here:
|
||||||
|
# https://raw.githubusercontent.com/errbotio/errbot/master/errbot/config-template.py
|
||||||
|
|
||||||
|
BACKEND = 'Slack'
|
||||||
|
|
||||||
|
BOT_IDENTITY = {
|
||||||
|
'token': 'xoxb-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx'
|
||||||
|
}
|
||||||
|
|
||||||
|
CHATROOM_FN = 'Errbot'
|
||||||
|
|
||||||
|
BOT_DATA_DIR = r'/home/errbot/data'
|
||||||
|
BOT_EXTRA_PLUGIN_DIR = '/home/errbot/plugins'
|
||||||
|
|
||||||
|
BOT_LOG_FILE = r'/home/errbot/errbot.log'
|
||||||
|
BOT_LOG_LEVEL = logging.DEBUG
|
||||||
|
|
||||||
|
BOT_ADMINS = ('CHANGE ME', )
|
6
errbot/docker-compose.yml
Normal file
6
errbot/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
errbot:
|
||||||
|
image: vimagick/errbot
|
||||||
|
volumes:
|
||||||
|
- ./data:/home/errbot
|
||||||
|
tty: yes
|
||||||
|
restart: always
|
Loading…
Reference in New Issue
Block a user