forked from phoenix-oss/llama-stack-mirror
feat: add additional logging to llama stack build (#1689)
# What does this PR do? Partial revert offa68ded07c
this commit ensures users know where their new templates are generated and how to run the newly built distro locally discussion on Discord:1351652390
## Test Plan Did a local run - let me know if we want any unit testing covering this  ## Documentation Updated "Zero to Hero" guide with new output --------- Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
This commit is contained in:
parent
2c7aba4158
commit
d897313e0b
2 changed files with 10 additions and 5 deletions
|
@ -19,7 +19,7 @@ import yaml
|
|||
from prompt_toolkit import prompt
|
||||
from prompt_toolkit.completion import WordCompleter
|
||||
from prompt_toolkit.validation import Validator
|
||||
from termcolor import cprint
|
||||
from termcolor import colored, cprint
|
||||
|
||||
from llama_stack.cli.stack.utils import ImageType
|
||||
from llama_stack.cli.table import print_table
|
||||
|
@ -389,6 +389,11 @@ def _run_stack_build_command_from_build_config(
|
|||
shutil.copy(path, run_config_file)
|
||||
|
||||
cprint("Build Successful!", color="green")
|
||||
cprint("You can find the newly-built template here: " + colored(template_path, "light_blue"))
|
||||
cprint(
|
||||
"You can run the new Llama Stack distro via: "
|
||||
+ colored(f"llama stack run {template_path} --image-type {build_config.image_type}", "light_blue")
|
||||
)
|
||||
return template_path
|
||||
else:
|
||||
return _generate_run_config(build_config, build_dir, image_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue