diff --git a/ci/update-sha.sh b/ci/update-sha.sh index c4d0aa8d..2cb08f0e 100755 --- a/ci/update-sha.sh +++ b/ci/update-sha.sh @@ -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") @@ -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 diff --git a/solr/Dockerfile b/solr/Dockerfile index f64fbe20..c054c30e 100644 --- a/solr/Dockerfile +++ b/solr/Dockerfile @@ -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