Add consumedir-entrypoint.sh to allow polling consumedir

This commit is contained in:
Jan Bader
2021-01-27 21:13:16 +01:00
parent 5ff6cb7b66
commit bebe0dabde
2 changed files with 61 additions and 1 deletions

View File

@ -13,7 +13,7 @@ RUN apk add --no-cache curl bash inotify-tools
COPY --from=docspell-base-binaries /opt/docspell-tools /opt/docspell-tools
ENTRYPOINT /opt/docspell-tools/consumedir/consumedir.sh --path /opt/docs -i --iheader Docspell-Integration:$DOCSPELL_HEADER_VALUE -m http://docspell-restserver:7880/api/v1/open/integration/item -v
ENTRYPOINT ["/opt/docspell-tools/consumedir/consumedir-entrypoint.sh"]
HEALTHCHECK --interval=1m --timeout=10s --retries=2 --start-period=10s \
CMD pgrep inotifywait