1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-27 01:08:37 +00:00

update errbot

This commit is contained in:
kev 2024-05-14 17:22:33 +08:00
parent 7d225a8f8e
commit 2c73b5e086
6 changed files with 30 additions and 88 deletions

@ -2,8 +2,8 @@
# Dockerfile for errbot
#
FROM alpine
MAINTAINER kev <noreply@easypi.pro>
FROM alpine:3.19
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apk add --no-cache ca-certificates \
@ -16,26 +16,26 @@ RUN set -xe \
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 \
hypchat \
irc \
pyasn1 \
pyasn1-modules \
python-telegram-bot \
slackclient \
sleekxmpp \
&& adduser -s /bin/sh -h /opt/errbot -D errbot \
&& apk del --purge build-base \
libffi-dev \
openssl-dev \
python3-dev
USER errbot
WORKDIR /home/errbot
WORKDIR /opt/errbot
RUN set -xe \
&& mkdir -p ~/.local/lib/python3.5/site-packages \
&& mkdir -p ~/.local/lib/python3.11/site-packages \
&& errbot --init
VOLUME /home/errbot
VOLUME /opt/errbot
ENTRYPOINT ["errbot"]

@ -7,18 +7,6 @@ errbot
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
```bash
@ -28,8 +16,8 @@ $ vim data/config.py
$ docker-compose up -d
$ docker-compose exec --user root errbot sh
>>> apk add -U py3-lxml
>>> chmod 777 /usr/lib/python3.5/site-packages
>>> chmod 777 /usr/lib/python3.5/site-packages/__pycache__
>>> chmod 777 /usr/lib/python3.11/site-packages
>>> chmod 777 /usr/lib/python3.11/site-packages/__pycache__
>>> 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:
# https://raw.githubusercontent.com/errbotio/errbot/master/errbot/config-template.py
BACKEND = 'Slack'
BACKEND = 'SlackV3'
BOT_IDENTITY = {
'token': 'xoxb-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx'
@ -13,10 +13,11 @@ BOT_IDENTITY = {
CHATROOM_FN = 'Errbot'
BOT_DATA_DIR = '/home/errbot/data'
BOT_EXTRA_PLUGIN_DIR = '/home/errbot/plugins'
BOT_DATA_DIR = '/opt/errbot/data'
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_ADMINS = ('@master', )

@ -1,8 +1,10 @@
errbot:
image: vimagick/errbot
volumes:
- ./data:/home/errbot
- /usr/lib/python3.5/site-packages
stop_signal: SIGINT
tty: yes
restart: always
version: "3.8"
services:
errbot:
image: vimagick/errbot
volumes:
- ./data:/opt/errbot
- /usr/lib/python3.11/site-packages
stop_signal: SIGINT
tty: true
restart: unless-stopped