Skip to content

Commit

Permalink
Need to follow redirects for github assets
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Jan 2, 2025
1 parent bce5304 commit 322260a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ci/update-sha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ elif [ "$DEP" = "custom-composer" ]; then

elif [ "$DEP" = "solr-ocrhighlighting" ]; then
URL=https://github.com/dbmdz/solr-ocrhighlighting/releases/download/${NEW_VERSION}/solr-ocrhighlighting-${NEW_VERSION}.jar

ARG="OCRHIGHLIGHT_FILE_SHA256"
DOCKERFILES=("solr/Dockerfile")

Expand Down Expand Up @@ -97,7 +98,7 @@ else
fi

# update the Dockerfile(s) SHA256 with the file we're downloading
SHA=$(curl -s "$URL" \
SHA=$(curl -Ls "$URL" \
| shasum -a 256 \
| awk '{print $1}')
if [[ "$OSTYPE" == "darwin"* ]]; then
Expand Down
2 changes: 1 addition & 1 deletion solr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARG SOLR_FILE_SHA256="38548b86fa4e3c87883875952da124bf7d742cb8f7b25d37a117683358
ARG OCRHIGHLIGHT_VERSION=0.9.1
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="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
ARG OCRHIGHLIGHT_FILE_SHA256="91be01fe52553ea774b9a6804b149ab2fc9b8937eb19d91455b0b17c865c2971"
ARG OCRHIGHLIGHT_DEST=/opt/solr/server/solr/contrib/ocrhighlighting/lib

EXPOSE 8983
Expand Down

0 comments on commit 322260a

Please sign in to comment.