Skip to content

Commit

Permalink
script to download apk packages
Browse files Browse the repository at this point in the history
  • Loading branch information
MthwRobinson committed May 14, 2024
1 parent 3f8e6b7 commit 6bfd023
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,6 @@ examples/**/output/

outputdiff.txt
metricsdiff.txt

# APK packages for the docker build
docker-packages/*
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,10 @@ DOCKER_IMAGE ?= unstructured:dev
docker-build:
PIP_VERSION=${PIP_VERSION} DOCKER_IMAGE_NAME=${DOCKER_IMAGE} ./scripts/docker-build.sh

.PHONY: docker-dl-packages
docker-dl-packages:
@scripts/docker-dl-packages.sh

.PHONY: docker-start-bash
docker-start-bash:
docker run -ti --rm ${DOCKER_IMAGE}
Expand Down
22 changes: 22 additions & 0 deletions scripts/docker-dl-packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

files=(
"libreoffice-7.6.5-r0.apk"
"openjpeg-2.5.0-r0.apk"
"poppler-23.09.0-r0.apk"
"leptonica-1.83.0-r0.apk"
"pandoc-3.1.8-r0.apk"
"tesseract-5.3.2-r0.apk"
"nltk_data.tgz"

)

directory="docker-packages"
mkdir -p "${directory}"

for file in "${files[@]}"; do
echo "Downloading ${file}"
wget "https://utic-public-cf.s3.amazonaws.com/$file" -P "$directory"
done

echo "Downloads complete."

0 comments on commit 6bfd023

Please sign in to comment.