From eb88ea59cd9667ebb22ccfa52d6eee2755c57e54 Mon Sep 17 00:00:00 2001 From: latentvector Date: Fri, 17 May 2024 22:20:08 -0400 Subject: [PATCH] docker compose --- commune/module/module.py | 6 ++++-- commune/tree/tree.py | 1 - docker-compose.yml | 5 ++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/commune/module/module.py b/commune/module/module.py index e5446cde4..565997349 100755 --- a/commune/module/module.py +++ b/commune/module/module.py @@ -7654,9 +7654,11 @@ def docker_compose_file(self, *args, **kwargs): return x @classmethod - def launcher_keys(cls): + def launcher_keys(cls, netuid=0, min_stake=500, **kwargs): keys = c.keys() - return [k for k in keys if k.startswith('module::')] + key2balance = c.key2balance(**kwargs) + key2balance = {k: v for k,v in key2balance.items() if v > min_stake} + return [k for k in keys] @classmethod def top_launchers(cls, amount=600, **kwargs): diff --git a/commune/tree/tree.py b/commune/tree/tree.py index 192f7b2b0..bc853bd0d 100644 --- a/commune/tree/tree.py +++ b/commune/tree/tree.py @@ -196,7 +196,6 @@ def path2simple(cls, path:str, ignore_prefixes = ['commune', 'modules', 'commune path = path.replace(c.libpath, '') elif path.startswith(pwd): path = path.replace(pwd, '') - if cls.path_config_exists(path): simple_path = os.path.dirname(simple_path) else: diff --git a/docker-compose.yml b/docker-compose.yml index bdfa381b4..b6efdae99 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,11 +8,10 @@ services: container_name: commune shm_size: '1gb' # for the shared memory size volumes: - - ~/.commune:/config/.commune - - ./:/commune + - ~/.commune:/config/.commune # mount the temporary folder + - ./:/commune # mount the current directory - /var/run/docker.sock:/var/run/docker.sock # allow for docker to talk to deamon in outside ports: - # - 50050-50250:50050-50250 restart: unless-stopped \ No newline at end of file