From 9395acc59d4cc5a2a716d9c9bd0e4946dd13a573 Mon Sep 17 00:00:00 2001 From: Yuming Long Date: Tue, 19 Nov 2024 14:49:42 -0800 Subject: [PATCH 1/2] lets see if docker test pass now --- .github/workflows/docker-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index d00336890..6f1e2e5b2 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - yuming/manual_deploy env: DOCKER_REPOSITORY: quay.io/unstructured-io/unstructured-api From 013019f52e81338fbd960c7b6cf12d73db536d47 Mon Sep 17 00:00:00 2001 From: Yuming Long Date: Tue, 19 Nov 2024 19:07:24 -0800 Subject: [PATCH 2/2] specify platform? --- .github/workflows/docker-publish.yml | 4 ++-- scripts/docker-smoke-test.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 6f1e2e5b2..09ab50b98 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -93,9 +93,9 @@ jobs: source .venv/bin/activate export DOCKER_IMAGE="$DOCKER_BUILD_REPOSITORY:${{ matrix.arch }}-$SHORT_SHA" if [ "$DOCKER_PLATFORM" == "linux/arm64" ]; then - SKIP_INFERENCE_TESTS=true make docker-test + SKIP_INFERENCE_TESTS=true DOCKER_PLATFORM=$DOCKER_PLATFORM make docker-test else - make docker-test + DOCKER_PLATFORM=$DOCKER_PLATFORM make docker-test fi - name: Push image run: | diff --git a/scripts/docker-smoke-test.sh b/scripts/docker-smoke-test.sh index dbfb2a4f6..eb813992a 100755 --- a/scripts/docker-smoke-test.sh +++ b/scripts/docker-smoke-test.sh @@ -16,6 +16,7 @@ CONTAINER_NAME_PARALLEL=unstructured-api-smoke-test-parallel PIPELINE_FAMILY=${PIPELINE_FAMILY:-"general"} DOCKER_IMAGE="${DOCKER_IMAGE:-pipeline-family-${PIPELINE_FAMILY}-dev:latest}" SKIP_INFERENCE_TESTS="${SKIP_INFERENCE_TESTS:-false}" +DOCKER_PLATFORM="${DOCKER_PLATFORM:-"linux/arm64"}" start_container() { @@ -30,6 +31,7 @@ start_container() { echo Starting container "$name" docker run -p "$port":"$port" \ + --platform "${DOCKER_PLATFORM}" \ --entrypoint uvicorn \ -d \ --rm \