-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove docker status check in launch.py for now
- Loading branch information
1 parent
c68930e
commit e2e4b9c
Showing
2 changed files
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import subprocess | ||
import os | ||
from script_builder.util import get_venv_dir | ||
from concierge_backend_lib.status import get_status | ||
from concierge_installer.functions import docker_compose_helper | ||
from script_builder.util import get_venv_executable | ||
|
||
print("Checking Docker container status...\n") | ||
status = get_status() | ||
# TODO: these imports seem to mess up the venv | ||
# from concierge_backend_lib.status import get_status | ||
# from concierge_installer.functions import docker_compose_helper | ||
|
||
if not status["ollama"] or not status["milvus"]: | ||
print("Docker container dependencies don't appear to be running properly.") | ||
compute_method = input("Start docker containers with CPU or GPU? [CPU] or GPU:") or "CPU" | ||
if compute_method == 'GPU': | ||
docker_compose_helper('GPU') | ||
else: | ||
docker_compose_helper('CPU') | ||
# print("Checking Docker container status...\n") | ||
# status = get_status() | ||
|
||
subprocess.run([os.path.join(get_venv_dir(), 'streamlit'), 'run', 'Concierge.py']) | ||
# if not status["ollama"] or not status["milvus"]: | ||
# print("Docker container dependencies don't appear to be running properly.") | ||
# compute_method = input("Start docker containers with CPU or GPU? [CPU] or GPU:") or "CPU" | ||
# if compute_method == 'GPU': | ||
# docker_compose_helper('GPU') | ||
# else: | ||
# docker_compose_helper('CPU') | ||
|
||
|
||
subprocess.run([get_venv_executable(), '-m', 'streamlit', 'run', 'Concierge.py']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters