From 3bdc237500fcdf1ed4f9f69790d19a86cd6a9fe2 Mon Sep 17 00:00:00 2001 From: anakin87 Date: Thu, 23 Nov 2023 09:21:39 +0100 Subject: [PATCH] try using services --- .../components_unstructured_fileconverter.yml | 10 ++++++++++ .../unstructured_fileconverter/docker-compose.yml | 11 ----------- 2 files changed, 10 insertions(+), 11 deletions(-) delete mode 100644 components/file_converters/unstructured_fileconverter/docker-compose.yml diff --git a/.github/workflows/components_unstructured_fileconverter.yml b/.github/workflows/components_unstructured_fileconverter.yml index fd3b6d961..fbaca97d0 100644 --- a/.github/workflows/components_unstructured_fileconverter.yml +++ b/.github/workflows/components_unstructured_fileconverter.yml @@ -27,6 +27,16 @@ jobs: matrix: os: [ubuntu-latest] python-version: ["3.8", "3.9", "3.10", "3.11"] + services: + unstructured-api: + image: "quay.io/unstructured-io/unstructured-api:latest" + ports: + - 8000:8000 + options: >- + --health-cmd "curl --fail http://localhost:8000/healthcheck || exit 1" + --health-interval 10s + --health-timeout 1s + --health-retries 10 steps: - uses: actions/checkout@v4 diff --git a/components/file_converters/unstructured_fileconverter/docker-compose.yml b/components/file_converters/unstructured_fileconverter/docker-compose.yml deleted file mode 100644 index ebc56d3e0..000000000 --- a/components/file_converters/unstructured_fileconverter/docker-compose.yml +++ /dev/null @@ -1,11 +0,0 @@ -services: - unstructured-api: - image: "quay.io/unstructured-io/unstructured-api:latest" - ports: - - 8000:8000 - restart: on-failure - healthcheck: - test: curl --fail http://localhost:8000/healthcheck || exit 1 - interval: 10s - timeout: 1s - retries: 10 \ No newline at end of file