Skip to content

Commit

Permalink
Solr: Add OCR Highlight plugin. (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxp authored Jun 5, 2024
1 parent a4c0d84 commit 86d098d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions solr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ ARG SOLR_VERSION=9.5.0
ARG SOLR_FILE=solr-${SOLR_VERSION}.tgz
ARG SOLR_URL=https://archive.apache.org/dist/solr/solr/${SOLR_VERSION}/solr-${SOLR_VERSION}.tgz
ARG SOLR_FILE_SHA256=d8538502019af1945e0b124a4613b46ca43aedcf3f20e9912c482c080407ea21
ARG OCRHIGHLIGHT_VERSION=0.8.6
ARG OCRHIGHLIGHT_FILE=solr-ocrhighlighting-${OCRHIGHLIGHT_VERSION}.jar
ARG OCRHIGHLIGHT_URL=https://github.com/dbmdz/solr-ocrhighlighting/releases/download/${OCRHIGHLIGHT_VERSION}/solr-ocrhighlighting-${OCRHIGHLIGHT_VERSION}.jar
ARG OCRHIGHLIGHT_FILE_SHA256=3cf22d554003347de5486a1e2b6b624759495122a5b35fef9d8306eeb5e14f61
ARG OCRHIGHLIGHT_DEST=/opt/solr/server/solr/contrib/ocrhighlighting/lib

EXPOSE 8983

Expand All @@ -24,6 +29,14 @@ RUN --mount=type=cache,id=solr-downloads-${TARGETARCH},sharing=locked,target=/op
&& \
cleanup.sh

RUN --mount=type=cache,id=solr-ocrhighlight-downloads,sharing=locked,target=/opt/downloads \
download.sh \
--url "${OCRHIGHLIGHT_URL}" \
--sha256 "${OCRHIGHLIGHT_FILE_SHA256}" \
--dest ${OCRHIGHLIGHT_DEST} \
&& \
cleanup.sh

RUN create-service-user.sh --name solr /data && \
cleanup.sh

Expand Down

0 comments on commit 86d098d

Please sign in to comment.