Skip to content

Commit

Permalink
Merge pull request #92 from ssi-dk/fix/bioapi
Browse files Browse the repository at this point in the history
fix: changed docker compose bio api hostname to match cluster
  • Loading branch information
allanhvam authored Aug 20, 2024
2 parents 270ca93 + 17919bf commit aca1aa9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ services:
command: ["/bin/sh", "-c", "/app/start.sh"]
depends_on:
- "keycloak"
- "bio_api"
- "bioapi"
restart: on-failure

environment:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion web/src/SAP/src/controllers/MicroreactController.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion web/src/SAP/src/controllers/NearestNeighborsController.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit aca1aa9

Please sign in to comment.