mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-05-13 22:06:55 +02:00
update errbot
This commit is contained in:
parent
7d225a8f8e
commit
2c73b5e086
@ -2,8 +2,8 @@
|
|||||||
# Dockerfile for errbot
|
# Dockerfile for errbot
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine:3.19
|
||||||
MAINTAINER kev <noreply@easypi.pro>
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache ca-certificates \
|
&& apk add --no-cache ca-certificates \
|
||||||
@ -16,26 +16,26 @@ RUN set -xe \
|
|||||||
python3-dev \
|
python3-dev \
|
||||||
&& pip3 install --no-cache-dir -U pip \
|
&& pip3 install --no-cache-dir -U pip \
|
||||||
&& pip3 install --no-cache-dir errbot \
|
&& pip3 install --no-cache-dir errbot \
|
||||||
hypchat \
|
hypchat \
|
||||||
irc \
|
irc \
|
||||||
pyasn1 \
|
pyasn1 \
|
||||||
pyasn1-modules \
|
pyasn1-modules \
|
||||||
python-telegram-bot \
|
python-telegram-bot \
|
||||||
slackclient \
|
slackclient \
|
||||||
sleekxmpp \
|
sleekxmpp \
|
||||||
&& adduser -s /bin/sh -D errbot \
|
&& adduser -s /bin/sh -h /opt/errbot -D errbot \
|
||||||
&& apk del --purge build-base \
|
&& apk del --purge build-base \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
python3-dev
|
python3-dev
|
||||||
|
|
||||||
USER errbot
|
USER errbot
|
||||||
WORKDIR /home/errbot
|
WORKDIR /opt/errbot
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& mkdir -p ~/.local/lib/python3.5/site-packages \
|
&& mkdir -p ~/.local/lib/python3.11/site-packages \
|
||||||
&& errbot --init
|
&& errbot --init
|
||||||
|
|
||||||
VOLUME /home/errbot
|
VOLUME /opt/errbot
|
||||||
|
|
||||||
ENTRYPOINT ["errbot"]
|
ENTRYPOINT ["errbot"]
|
||||||
|
@ -7,18 +7,6 @@ errbot
|
|||||||
and brings your tools into the conversation.
|
and brings your tools into the conversation.
|
||||||
|
|
||||||
|
|
||||||
## docker-compose.yml
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
errbot:
|
|
||||||
image: vimagick/errbot
|
|
||||||
volumes:
|
|
||||||
- ./data:/home/errbot
|
|
||||||
- /usr/lib/python3.5/site-packages
|
|
||||||
tty: yes
|
|
||||||
restart: always
|
|
||||||
```
|
|
||||||
|
|
||||||
## up and running
|
## up and running
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -28,8 +16,8 @@ $ vim data/config.py
|
|||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
$ docker-compose exec --user root errbot sh
|
$ docker-compose exec --user root errbot sh
|
||||||
>>> apk add -U py3-lxml
|
>>> apk add -U py3-lxml
|
||||||
>>> chmod 777 /usr/lib/python3.5/site-packages
|
>>> chmod 777 /usr/lib/python3.11/site-packages
|
||||||
>>> chmod 777 /usr/lib/python3.5/site-packages/__pycache__
|
>>> chmod 777 /usr/lib/python3.11/site-packages/__pycache__
|
||||||
>>> exit
|
>>> exit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,41 +0,0 @@
|
|||||||
#
|
|
||||||
# Dockerfile for errbot-arm
|
|
||||||
#
|
|
||||||
|
|
||||||
FROM easypi/alpine-arm
|
|
||||||
MAINTAINER EasyPi Software Foundation
|
|
||||||
|
|
||||||
RUN set -xe \
|
|
||||||
&& apk add --no-cache ca-certificates \
|
|
||||||
build-base \
|
|
||||||
git \
|
|
||||||
libffi-dev \
|
|
||||||
openssl \
|
|
||||||
openssl-dev \
|
|
||||||
python3 \
|
|
||||||
python3-dev \
|
|
||||||
&& pip3 install --no-cache-dir -U pip \
|
|
||||||
&& pip3 install --no-cache-dir errbot \
|
|
||||||
hypchat \
|
|
||||||
irc \
|
|
||||||
pyasn1 \
|
|
||||||
pyasn1-modules \
|
|
||||||
python-telegram-bot \
|
|
||||||
slackclient \
|
|
||||||
sleekxmpp \
|
|
||||||
&& adduser -s /bin/sh -D errbot \
|
|
||||||
&& apk del --purge build-base \
|
|
||||||
libffi-dev \
|
|
||||||
openssl-dev \
|
|
||||||
python3-dev
|
|
||||||
|
|
||||||
USER errbot
|
|
||||||
WORKDIR /home/errbot
|
|
||||||
|
|
||||||
RUN set -xe \
|
|
||||||
&& mkdir -p ~/.local/lib/python3.5/site-packages \
|
|
||||||
&& errbot --init
|
|
||||||
|
|
||||||
VOLUME /home/errbot
|
|
||||||
|
|
||||||
ENTRYPOINT ["errbot"]
|
|
@ -1,8 +0,0 @@
|
|||||||
errbot:
|
|
||||||
image: easypi/errbot-arm
|
|
||||||
volumes:
|
|
||||||
- ./data:/home/errbot
|
|
||||||
- /usr/lib/python3.5/site-packages
|
|
||||||
stop_signal: SIGINT
|
|
||||||
tty: yes
|
|
||||||
restart: always
|
|
@ -5,7 +5,7 @@ import logging
|
|||||||
# the options in the more complete config-template.py from here:
|
# the options in the more complete config-template.py from here:
|
||||||
# https://raw.githubusercontent.com/errbotio/errbot/master/errbot/config-template.py
|
# https://raw.githubusercontent.com/errbotio/errbot/master/errbot/config-template.py
|
||||||
|
|
||||||
BACKEND = 'Slack'
|
BACKEND = 'SlackV3'
|
||||||
|
|
||||||
BOT_IDENTITY = {
|
BOT_IDENTITY = {
|
||||||
'token': 'xoxb-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx'
|
'token': 'xoxb-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx'
|
||||||
@ -13,10 +13,11 @@ BOT_IDENTITY = {
|
|||||||
|
|
||||||
CHATROOM_FN = 'Errbot'
|
CHATROOM_FN = 'Errbot'
|
||||||
|
|
||||||
BOT_DATA_DIR = '/home/errbot/data'
|
BOT_DATA_DIR = '/opt/errbot/data'
|
||||||
BOT_EXTRA_PLUGIN_DIR = '/home/errbot/plugins'
|
BOT_EXTRA_BACKEND_DIR = '/opt/errbot/backend'
|
||||||
|
BOT_EXTRA_PLUGIN_DIR = '/opt/errbot/plugins'
|
||||||
|
|
||||||
BOT_LOG_FILE = '/home/errbot/errbot.log'
|
BOT_LOG_FILE = '/opt/errbot/errbot.log'
|
||||||
BOT_LOG_LEVEL = logging.DEBUG
|
BOT_LOG_LEVEL = logging.DEBUG
|
||||||
|
|
||||||
BOT_ADMINS = ('@master', )
|
BOT_ADMINS = ('@master', )
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
errbot:
|
version: "3.8"
|
||||||
image: vimagick/errbot
|
services:
|
||||||
volumes:
|
errbot:
|
||||||
- ./data:/home/errbot
|
image: vimagick/errbot
|
||||||
- /usr/lib/python3.5/site-packages
|
volumes:
|
||||||
stop_signal: SIGINT
|
- ./data:/opt/errbot
|
||||||
tty: yes
|
- /usr/lib/python3.11/site-packages
|
||||||
restart: always
|
stop_signal: SIGINT
|
||||||
|
tty: true
|
||||||
|
restart: unless-stopped
|
||||||
|
Loading…
x
Reference in New Issue
Block a user