1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-24 07:48:38 +00:00

update urlwatch

This commit is contained in:
kev 2019-05-09 17:18:05 +08:00
parent 0eec95749f
commit 9ddf89139a
2 changed files with 25 additions and 19 deletions

@ -7,30 +7,30 @@ MAINTAINER kev <noreply@easypi.pro>
RUN set -xe \ RUN set -xe \
&& apk add --no-cache ca-certificates \ && apk add --no-cache ca-certificates \
build-base \ build-base \
libffi-dev \ libffi-dev \
libxml2 \ libxml2 \
libxml2-dev \ libxml2-dev \
libxslt \ libxslt \
libxslt-dev \ libxslt-dev \
openssl-dev \ openssl-dev \
python3 \ python3 \
python3-dev \ python3-dev \
&& python3 -m pip install appdirs \ && python3 -m pip install appdirs \
cssselect \ cssselect \
keyring \ keyring \
lxml \ lxml \
minidb \ minidb \
pyyaml \ pyyaml \
requests \ requests \
urlwatch \ urlwatch \
&& apk del build-base \ && apk del build-base \
libffi-dev \ libffi-dev \
libxml2-dev \ libxml2-dev \
libxslt-dev \ libxslt-dev \
openssl-dev \ openssl-dev \
python3-dev \ python3-dev \
&& echo '*/30 * * * * urlwatch' | crontab - && echo '*/30 * * * * cd /root/.urlwatch && urlwatch --urls urls.yaml --config urlwatch.yaml --hooks hooks.py --cache cache.db' | crontab -
VOLUME /root/.urlwatch VOLUME /root/.urlwatch
WORKDIR /root/.urlwatch WORKDIR /root/.urlwatch

6
urlwatch/data/hooks.py Normal file

@ -0,0 +1,6 @@
#!/usr/bin/env python3
import re
from urlwatch import filters
from urlwatch import jobs
from urlwatch import reporters