bake run.yaml inside docker, simplify run

This commit is contained in:
Xi Yan 2024-09-30 08:49:25 -07:00
parent cb36be320f
commit 6cd3e4183f
3 changed files with 19 additions and 21 deletions

View file

@ -113,15 +113,11 @@ class StackBuild(Subcommand):
if return_code != 0:
return
configure_name = (
build_config.name
if build_config.image_type == "conda"
else (f"llamastack-{build_config.name}")
)
cprint(
f"You can now run `llama stack configure {configure_name}`",
color="green",
)
if build_config.image_type == ImageType.conda.value:
cprint(
f"You can now run `llama stack configure {build_config.name}`",
color="green",
)
def _run_template_list_cmd(self, args: argparse.Namespace) -> None:
import json

View file

@ -112,12 +112,6 @@ class StackConfigure(Subcommand):
)
return
build_name = docker_image.removeprefix("llamastack-")
saved_file = str(builds_dir / f"{build_name}-run.yaml")
cprint(
f"YAML configuration has been written to {saved_file}. You can now run `llama stack run {saved_file}`",
color="green",
)
return
def _configure_llama_distribution(
@ -173,7 +167,8 @@ class StackConfigure(Subcommand):
color="blue",
)
cprint(
f"You can now run `llama stack run {image_name} --port PORT`",
color="green",
)
if build_config.image_type == "conda":
cprint(
f"You can now run `llama stack run {image_name} --port PORT`",
color="green",
)