diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-12-13 10:53:42 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-12-13 10:56:26 +0100 |
commit | 9719f4b294b4d295ed62848c3a82a5271eb86139 (patch) | |
tree | bce39c6ef28735827150dd366d323dfb0c3586d7 /example | |
parent | 1607ceaf5c6d2e5f9b8656dedd53049c66eaa079 (diff) | |
download | mknet-9719f4b294b4d295ed62848c3a82a5271eb86139.tar.gz mknet-9719f4b294b4d295ed62848c3a82a5271eb86139.zip |
Change env name + fix python casting
Diffstat (limited to 'example')
-rwxr-xr-x | example/deploy_minio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/deploy_minio.py b/example/deploy_minio.py index 4488974..431b983 100755 --- a/example/deploy_minio.py +++ b/example/deploy_minio.py @@ -19,7 +19,7 @@ def leader(): sock.bind(UNIX_SOCK) sock.listen() - n_serv = os.environ['SIZE'] + n_serv = int(os.environ['SERVER_COUNT']) fl = [ co for co, addr in [ sock.accept() for i in range(n_serv - 1) ]] identities = [ json.loads(co.makefile().readline()) for co in fl ] + [ { "ip": os.environ['IP'], "path": make_data() } ] @@ -52,7 +52,7 @@ def make_data(): return data_path def run_minio(identities): - cmd = f"minio server --console-address ':9001' --address [{os.environ['IP']}]:9000" + cmd = f"minio server --console-address ':9001' --address ':9000'" for ident in identities: cmd += f" http://[{ident['ip']}]:9000{ident['path']}" cmd += f" > {os.path.join(STORAGE_PATH, 'minio'+os.environ['ID']+'.log')} 2>&1" |