From 6b99ddcd902b1f5f5932b1196cac468f366ee111 Mon Sep 17 00:00:00 2001 From: codebender <167290009+codebender37@users.noreply.github.com> Date: Thu, 24 Oct 2024 12:24:05 +0700 Subject: [PATCH] fix: added bug fixes - fixed autoupdate need trigger docker-compose up initially - added generate prisma file and shared to validator service --- auto_update.py | 1 + docker-compose.validator.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/auto_update.py b/auto_update.py index 1b5195d..fddc109 100755 --- a/auto_update.py +++ b/auto_update.py @@ -252,6 +252,7 @@ def main(service_name): config = CONFIG[service_name] pull_docker_images(config["images"]) + restart_docker(service_name) try: # Start the periodic check loop diff --git a/docker-compose.validator.yaml b/docker-compose.validator.yaml index 4ae20f3..e80c254 100644 --- a/docker-compose.validator.yaml +++ b/docker-compose.validator.yaml @@ -7,6 +7,7 @@ volumes: redis-validator-volume: prisma-pip-cache: prisma-binary: + prisma-data: networks: dojo-validator: @@ -98,6 +99,7 @@ services: volumes: - prisma-pip-cache:/root/.cache/pip - prisma-binary:/root/prisma-python + - prisma-data:/app/database/prisma - ./:/app networks: - dojo-validator @@ -115,6 +117,7 @@ services: - ./.env.validator:/app/.env - $HOME/.bittensor:/root/.bittensor - prisma-binary:/root/prisma-python + - prisma-data:/app/database/prisma command: ["validator"] networks: - dojo-validator