1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00: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

@ -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"]

@ -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].

@ -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"]