runledger-cli 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/PKG-INFO +1 -1
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/cli/ledger.py +13 -5
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/pyproject.toml +1 -1
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/runledger_cli.egg-info/PKG-INFO +1 -1
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/README.md +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/cli/__init__.py +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/cli/docker-compose.yml +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/cli/guided.py +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/cli/tests/__init__.py +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/cli/tests/test_data_features.py +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/cli/tests/test_integration.py +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/cli/tests/test_ledger.py +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/cli/tests/test_real_results.py +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/runledger_cli.egg-info/SOURCES.txt +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/runledger_cli.egg-info/dependency_links.txt +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/runledger_cli.egg-info/entry_points.txt +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/runledger_cli.egg-info/requires.txt +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/runledger_cli.egg-info/top_level.txt +0 -0
- {runledger_cli-0.1.1 → runledger_cli-0.1.2}/setup.cfg +0 -0
|
@@ -86,11 +86,15 @@ def wait_for_backend(timeout=60):
|
|
|
86
86
|
return False
|
|
87
87
|
|
|
88
88
|
def start_backend():
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
compose_file = COMPOSE_FILE
|
|
90
|
+
if not os.path.exists(compose_file):
|
|
91
|
+
console.print("[red]Cannot find docker-compose.yml[/red]")
|
|
91
92
|
sys.exit(1)
|
|
92
93
|
console.print("Starting RunLedger backend...")
|
|
93
|
-
subprocess.run(
|
|
94
|
+
subprocess.run(
|
|
95
|
+
["docker", "compose", "-f", compose_file, "-p", "runledger", "up", "-d"],
|
|
96
|
+
shell=True, check=True
|
|
97
|
+
)
|
|
94
98
|
if wait_for_backend():
|
|
95
99
|
console.print("[green]RunLedger backend is running.[/green]")
|
|
96
100
|
else:
|
|
@@ -98,8 +102,12 @@ def start_backend():
|
|
|
98
102
|
sys.exit(1)
|
|
99
103
|
|
|
100
104
|
def stop_backend():
|
|
101
|
-
|
|
102
|
-
|
|
105
|
+
compose_file = COMPOSE_FILE
|
|
106
|
+
if os.path.exists(compose_file):
|
|
107
|
+
subprocess.run(
|
|
108
|
+
["docker", "compose", "-f", compose_file, "-p", "runledger", "down"],
|
|
109
|
+
shell=True, check=True
|
|
110
|
+
)
|
|
103
111
|
console.print("RunLedger backend stopped.")
|
|
104
112
|
else:
|
|
105
113
|
console.print("[red]Cannot find docker-compose.yml[/red]")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|