🚧 Install olena via preliminary Ubuntu package

pull/27/head
Gerber, Mike 5 years ago
parent 8462112863
commit 007d26df87

@ -20,7 +20,7 @@ RUN apt-get update && \
# For cv2: # For cv2:
libsm6 libxrender1 \ libsm6 libxrender1 \
# For ocrd_olena: # For ocrd_olena:
wget graphviz imagemagick libmagick++-dev libgraphicsmagick++1-dev libboost-dev \ imagemagick \
# XML utils # XML utils
libxml2-utils \ libxml2-utils \
xmlstarlet \ xmlstarlet \
@ -52,11 +52,17 @@ COPY ocrd_logging.py /etc/
# Build ocrd_olena # Build ocrd_olena
RUN curl -sSL -O https://qurator-data.de/~mike.gerber/olena_2.1-0+ocrd-git/olena-bin_2.1-0+ocrd-git_amd64.deb && \
dpkg -i --force-depends olena-bin_2.1-0+ocrd-git_amd64.deb && \
apt-get -f install -y && apt-get clean && \
rm -f olena-bin_2.1-0+ocrd-git_amd64.deb
RUN pip3 install --no-cache-dir --upgrade pip && \ RUN pip3 install --no-cache-dir --upgrade pip && \
curl -sSL -o ocrd_olena.tar.gz https://github.com/OCR-D/ocrd_olena/archive/fde4436.tar.gz && \ curl -sSL -o ocrd_olena.tar.gz https://github.com/OCR-D/ocrd_olena/archive/fde4436.tar.gz && \
mkdir ocrd_olena && \ mkdir ocrd_olena && \
tar xvz -C ocrd_olena --strip-components=1 -f ocrd_olena.tar.gz && \ tar xvz -C ocrd_olena --strip-components=1 -f ocrd_olena.tar.gz && \
cd ocrd_olena && \ cd ocrd_olena && \
sed -i 's/^install: deps$/install:/' Makefile && \
pip3 install --no-cache-dir ocrd && \
make install PREFIX=/usr/local && \ make install PREFIX=/usr/local && \
cd .. && rm -rf ocrd_olena ocrd_olena.tar.gz cd .. && rm -rf ocrd_olena ocrd_olena.tar.gz

Loading…
Cancel
Save