From 17919bf4ff446510491a49d589fac31ee7a459c0 Mon Sep 17 00:00:00 2001 From: Allan Hvam Date: Tue, 20 Aug 2024 10:36:34 +0200 Subject: [PATCH] fix: changed docker compose bio api hostname to match cluster --- docker-compose.yml | 4 ++-- web/src/SAP/src/controllers/MicroreactController.py | 2 +- web/src/SAP/src/controllers/NearestNeighborsController.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b6ef33c..39012d7 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -42,7 +42,7 @@ services: command: ["/bin/sh", "-c", "/app/start.sh"] depends_on: - "keycloak" - - "bio_api" + - "bioapi" restart: on-failure environment: @@ -160,7 +160,7 @@ services: - ./auth/pg/pg-init:/docker-entrypoint-initdb.d - ${PG_DATA_DIR}:/var/lib/postgresql/data/ - bio_api: + bioapi: image: ghcr.io/ssi-dk/bio_api:latest user: ${CURRENT_UID} ports: diff --git a/web/src/SAP/src/controllers/MicroreactController.py b/web/src/SAP/src/controllers/MicroreactController.py index 789846b..6650b99 100644 --- a/web/src/SAP/src/controllers/MicroreactController.py +++ b/web/src/SAP/src/controllers/MicroreactController.py @@ -20,7 +20,7 @@ def send_to_microreact(user, token_info, body): tree_calcs=[] samples = list(map(lambda s: s["id"], workspace["samples"])) - with ApiClient(Configuration(host="http://bio_api:8000")) as api_client: + with ApiClient(Configuration(host="http://bioapi:8000")) as api_client: # Distance api_instance = DistancesApi(api_client) request = DistanceMatrixRequest("samples", "categories.sample_info.summary.sofi_sequence_id", "categories.cgmlst.report.alleles", samples) diff --git a/web/src/SAP/src/controllers/NearestNeighborsController.py b/web/src/SAP/src/controllers/NearestNeighborsController.py index 68fdbde..8fb12d7 100644 --- a/web/src/SAP/src/controllers/NearestNeighborsController.py +++ b/web/src/SAP/src/controllers/NearestNeighborsController.py @@ -14,7 +14,7 @@ def post(user, token, body: NearestNeighborsRequest): assert_user_has("search", token) - with ApiClient(Configuration(host="http://bio_api:8000")) as api_client: + with ApiClient(Configuration(host="http://bioapi:8000")) as api_client: sample = get_single_sample(body.id) detected_species = sample["categories"]["species_detection"]["summary"]["detected_species"]