Skip to content

Commit

Permalink
hotfix: remove extra volume
Browse files Browse the repository at this point in the history
  • Loading branch information
Divya-Solulab committed Nov 29, 2024
1 parent c8c9887 commit 28106ef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions operate/services/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 28106ef

Please sign in to comment.