diff --git a/Dockerfile b/Dockerfile index 8045bf2..0db35c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,13 +12,19 @@ ENV PAPERLESS_MEDIA_ROOT=/data/media ENV PAPERLESS_CONSUMPTION_DIR=/data/consume ARG BUILD_PACKAGES="\ + automake \ + autotools-dev \ build-essential \ + git \ jq \ libatlas-base-dev \ + libleptonica-dev \ libpq-dev \ libqpdf-dev \ + libtool \ python3-dev \ - python3-pip" + python3-pip \ + zlib1g-dev" ARG RUNTIME_PACKAGES="\ curl \ @@ -38,7 +44,6 @@ ARG RUNTIME_PACKAGES="\ python3-setuptools \ qpdf \ redis \ - sudo \ tesseract-ocr \ tesseract-ocr-eng \ tzdata \ @@ -55,6 +60,15 @@ run \ apt-get install -y \ --no-install-recommends \ $RUNTIME_PACKAGES && \ + echo "**** install jbig2enc ****" && \ + git clone https://github.com/agl/jbig2enc /tmp/jbig2enc && \ + cd /tmp/jbig2enc && \ + ./autogen.sh && \ + ./configure && \ + make && \ + cp /tmp/jbig2enc/src/.libs/libjbig2enc* /usr/local/lib/ && \ + cp /tmp/jbig2enc/src/jbig2 /usr/local/bin/ && \ + cp /tmp/jbig2enc/src/*.h /usr/local/include/ && \ echo "**** install paperless ****" && \ mkdir -p /app/paperless && \ if [ -z ${PAPERLESS_RELEASE+x} ]; then \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index d0fb65c..b068206 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -12,13 +12,19 @@ ENV PAPERLESS_MEDIA_ROOT=/data/media ENV PAPERLESS_CONSUMPTION_DIR=/data/consume ARG BUILD_PACKAGES="\ + automake \ + autotools-dev \ build-essential \ + git \ jq \ libatlas-base-dev \ + libleptonica-dev \ libpq-dev \ libqpdf-dev \ + libtool \ python3-dev \ - python3-pip" + python3-pip \ + zlib1g-dev" ARG RUNTIME_PACKAGES="\ curl \ @@ -55,6 +61,15 @@ RUN \ apt-get install -y \ --no-install-recommends \ $RUNTIME_PACKAGES && \ + echo "**** install jbig2enc ****" && \ + git clone https://github.com/agl/jbig2enc /tmp/jbig2enc && \ + cd /tmp/jbig2enc && \ + ./autogen.sh && \ + ./configure && \ + make && \ + cp /tmp/jbig2enc/src/.libs/libjbig2enc* /usr/local/lib/ && \ + cp /tmp/jbig2enc/src/jbig2 /usr/local/bin/ && \ + cp /tmp/jbig2enc/src/*.h /usr/local/include/ && \ echo "**** install qpdf ****" && \ mkdir -p /tmp/qpdf && \ curl -o \ diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 55f532e..efe37dc 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -12,20 +12,26 @@ ENV PAPERLESS_MEDIA_ROOT=/data/media ENV PAPERLESS_CONSUMPTION_DIR=/data/consume ARG BUILD_PACKAGES="\ + automake \ + autotools-dev \ build-essential \ cargo \ gfortran \ + git \ jq \ libatlas-base-dev \ + libleptonica-dev \ libffi-dev \ libpq-dev \ libqpdf-dev \ libxml2-dev \ libxslt-dev \ libssl-dev \ + libtool \ python3-dev \ python3-pip \ - rustc" + rustc \ + zlib1g-dev" ARG RUNTIME_PACKAGES="\ curl \ @@ -62,6 +68,15 @@ RUN \ apt-get install -y \ --no-install-recommends \ $RUNTIME_PACKAGES && \ + echo "**** install jbig2enc ****" && \ + git clone https://github.com/agl/jbig2enc /tmp/jbig2enc && \ + cd /tmp/jbig2enc && \ + ./autogen.sh && \ + ./configure && \ + make && \ + cp /tmp/jbig2enc/src/.libs/libjbig2enc* /usr/local/lib/ && \ + cp /tmp/jbig2enc/src/jbig2 /usr/local/bin/ && \ + cp /tmp/jbig2enc/src/*.h /usr/local/include/ && \ echo "**** install qpdf ****" && \ mkdir -p /tmp/qpdf && \ curl -o \ diff --git a/README.md b/README.md index d73ceb7..f9556a3 100644 --- a/README.md +++ b/README.md @@ -228,6 +228,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **30.11.21:** - Added in jbig2enc. * **07.10.21:** - Fixed variable that determins if we should run redis locally. * **01.10.21:** - Replaced uwsgi with gunicorn due to websocket issues. * **24.07.21:** - Fixed directory config files (sqlite db) is all stored. diff --git a/readme-vars.yml b/readme-vars.yml index 08db488..069f28a 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -41,9 +41,10 @@ app_setup_block_enabled: true app_setup_block: | Default login is admin:admin via the webui, accessible at http://SERVERIP:PORT More info at [paperless-ng]({{ project_url }}). - For convenience this container provides an alias to perform administration management commands. Available administration commands are documented upstream [here](https://paperless-ng.readthedocs.io/en/latest/administration.html) and can be accessed with this container thus: `docker exec -it manage `. For example, `docker exec -it paperless manage document_retagger -tT`. + For convenience this container provides an alias to perform administration management commands. Available administration commands are documented upstream [here](https://paperless-ng.readthedocs.io/en/latest/administration.html) and can be accessed with this container thus: `docker exec -it manage `. For example, `docker exec -it paperless manage document_retagger -tT`. # changelog changelogs: + - { date: "30.11.21:", desc: "Added in jbig2enc." } - { date: "07.10.21:", desc: "Fixed variable that determins if we should run redis locally." } - { date: "01.10.21:", desc: "Replaced uwsgi with gunicorn due to websocket issues." } - { date: "24.07.21:", desc: "Fixed directory config files (sqlite db) is all stored." }