1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-02 09:21:34 +02:00

update errbot

This commit is contained in:
kev 2017-01-23 00:43:23 +08:00
parent 57a9178321
commit 900aa2292a
3 changed files with 16 additions and 2 deletions

View File

@ -14,6 +14,7 @@ RUN set -xe \
openssl-dev \
python3 \
python3-dev \
&& pip3 install -U pip \
&& pip3 install errbot \
hypchat \
irc \
@ -30,7 +31,11 @@ RUN set -xe \
USER errbot
WORKDIR /home/errbot
RUN errbot --init
RUN set -xe \
&& mkdir -p ~/.local/lib/python3.5/site-packages \
&& errbot --init
VOLUME /home/errbot
ENTRYPOINT ["errbot"]

View File

@ -25,6 +25,10 @@ $ mkdir -m 777 data
$ docker-compose run --rm errbot --init
$ vim data/config.py
$ docker-compose up -d
$ docker-compose exec --user root errbot sh
>>> chmod 777 /usr/lib/python3.5/site-packages
>>> chmod 777 /usr/lib/python3.5/site-packages/__pycache__
>>> exit
```
Check the example config.py [here][2].

View File

@ -14,6 +14,7 @@ RUN set -xe \
openssl-dev \
python3 \
python3-dev \
&& pip3 install -U pip \
&& pip3 install errbot \
hypchat \
irc \
@ -30,7 +31,11 @@ RUN set -xe \
USER errbot
WORKDIR /home/errbot
RUN errbot --init
RUN set -xe \
&& mkdir -p ~/.local/lib/python3.5/site-packages \
&& errbot --init
VOLUME /home/errbot
ENTRYPOINT ["errbot"]