Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #12 from linuxserver/jbig2enc
Browse files Browse the repository at this point in the history
added jbig2enc build
  • Loading branch information
alex-phillips authored Dec 10, 2021
2 parents 78b604c + 8ca2daa commit 4e072af
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 5 deletions.
18 changes: 16 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -38,7 +44,6 @@ ARG RUNTIME_PACKAGES="\
python3-setuptools \
qpdf \
redis \
sudo \
tesseract-ocr \
tesseract-ocr-eng \
tzdata \
Expand All @@ -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 \
Expand Down
17 changes: 16 additions & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
17 changes: 16 additions & 1 deletion Dockerfile.armhf
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <container_name> manage <command>`. 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 <container_name> manage <command>`. 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." }
Expand Down

0 comments on commit 4e072af

Please sign in to comment.