mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-06-27 02:30:08 +00:00

### Summary Closes #3034 and reenables ARM64 in the docker build and publish job. This was taken out in #3039 because we've only build `libreoffice` for AMD64 and not ARM64. If Chainguard publishes an `apk` for `libreoffice`, we can support a Chainguard image for both architectures. The smoke test now differs for both architectures, to reflect differences in the directory structure. ### Testing Build and publish ran successfully for ARM64 (job [here](https://github.com/Unstructured-IO/unstructured/actions/runs/9129712470/job/25104907497)) and AMD64 (job [here](https://github.com/Unstructured-IO/unstructured/actions/runs/9129712470/job/25104907826)).
22 lines
678 B
Bash
Executable File
22 lines
678 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
DOCKER_REPOSITORY="${DOCKER_REPOSITORY:-quay.io/unstructured-io/unstructured}"
|
|
PIP_VERSION="${PIP_VERSION:-23.1.2}"
|
|
DOCKER_IMAGE="${DOCKER_IMAGE:-unstructured:dev}"
|
|
|
|
DOCKER_BUILD_CMD=(docker buildx build --load -f Dockerfile-amd64
|
|
--build-arg PIP_VERSION="$PIP_VERSION"
|
|
--build-arg BUILDKIT_INLINE_CACHE=1
|
|
--progress plain
|
|
--platform linux/amd64
|
|
--cache-from "$DOCKER_REPOSITORY":latest
|
|
-t "$DOCKER_IMAGE" .)
|
|
|
|
# only build for specific platform if DOCKER_BUILD_PLATFORM is set
|
|
if [ -n "${DOCKER_BUILD_PLATFORM:-}" ]; then
|
|
DOCKER_BUILD_CMD+=("--platform=$DOCKER_BUILD_PLATFORM")
|
|
fi
|
|
|
|
DOCKER_BUILDKIT=1 "${DOCKER_BUILD_CMD[@]}"
|