From 28106ef96c001874c582ead9d877c37c37a78479 Mon Sep 17 00:00:00 2001 From: Divya-Solulab Date: Fri, 29 Nov 2024 22:49:14 +0530 Subject: [PATCH] hotfix: remove extra volume --- operate/services/service.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/operate/services/service.py b/operate/services/service.py index c7d9ce5..365cd82 100644 --- a/operate/services/service.py +++ b/operate/services/service.py @@ -484,6 +484,16 @@ def _build_docker( # "SKILL_TRADER_ABCI_MODELS_PARAMS_ARGS_MECH_REQUEST_PRICE=10000000000000000" # noqa # ) # noqa + #temporary fix: remove extra volume + for service_name, service_data in deployment['services'].items(): + if 'abci' in service_name: + # Access the volumes list in this service + volumes = service_data.get('volumes', []) + + # Remove './data:/data:Z' if it's in the volumes list + if './data:/data:Z' in volumes: + volumes.remove('./data:/data:Z') + with (build / DOCKER_COMPOSE_YAML).open("w", encoding="utf-8") as stream: yaml_dump(data=deployment, stream=stream)