Skip to content

Commit

Permalink
Solr: Add OCR Highlight plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
alxp committed Jun 4, 2024
1 parent a4c0d84 commit c757fbe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 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/0.8.6/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,15 @@ 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 \
mkdir -p ${OCRHIGHLIGHT_DEST} && \
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 c757fbe

Please sign in to comment.