rename LLAMASTACK_PORT to LLAMA_STACK_PORT for consistency with other env vars (#744)

# What does this PR do?

Rename environment var for consistency

## Test Plan

No regressions

## Sources

## Before submitting

- [X] This PR fixes a typo or improves the docs (you can dismiss the
other checks if that's the case).
- [X] Ran pre-commit to handle lint / formatting issues.
- [X] Read the [contributor
guideline](https://github.com/meta-llama/llama-stack/blob/main/CONTRIBUTING.md),
Pull Request section?
- [X] Updated relevant documentation.
- [ ] Wrote necessary unit or integration tests.

---------

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
Co-authored-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
raghotham 2025-01-10 11:09:49 -08:00 committed by GitHub
parent 8af6951106
commit ff182ff6de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 26 additions and 26 deletions

View file

@ -35,7 +35,7 @@ class StackRun(Subcommand):
"--port",
type=int,
help="Port to run the server on. Defaults to 5000",
default=int(os.getenv("LLAMASTACK_PORT", 5000)),
default=int(os.getenv("LLAMA_STACK_PORT", 5000)),
)
self.parser.add_argument(
"--disable-ipv6",

View file

@ -290,7 +290,7 @@ def main():
parser.add_argument(
"--port",
type=int,
default=int(os.getenv("LLAMASTACK_PORT", 5000)),
default=int(os.getenv("LLAMA_STACK_PORT", 5000)),
help="Port to listen on",
)
parser.add_argument(

View file

@ -90,6 +90,6 @@ $DOCKER_BINARY run $DOCKER_OPTS -it \
$env_vars \
-v "$yaml_config:/app/config.yaml" \
$mounts \
--env LLAMASTACK_PORT=$port \
--env LLAMA_STACK_PORT=$port \
--entrypoint='["python", "-m", "llama_stack.distribution.server.server", "--yaml-config", "/app/config.yaml"]' \
$docker_image:$version_tag

View file

@ -84,7 +84,7 @@ def get_distribution_template() -> DistributionTemplate:
),
},
run_config_env_vars={
"LLAMASTACK_PORT": (
"LLAMA_STACK_PORT": (
"5001",
"Port for the Llama Stack distribution server",
),

View file

@ -102,7 +102,7 @@ def get_distribution_template() -> DistributionTemplate:
),
},
run_config_env_vars={
"LLAMASTACK_PORT": (
"LLAMA_STACK_PORT": (
"5001",
"Port for the Llama Stack distribution server",
),

View file

@ -114,7 +114,7 @@ def get_distribution_template() -> DistributionTemplate:
),
},
run_config_env_vars={
"LLAMASTACK_PORT": (
"LLAMA_STACK_PORT": (
"5001",
"Port for the Llama Stack distribution server",
),

View file

@ -126,7 +126,7 @@ def get_distribution_template() -> DistributionTemplate:
),
},
run_config_env_vars={
"LLAMASTACK_PORT": (
"LLAMA_STACK_PORT": (
"5001",
"Port for the Llama Stack distribution server",
),

View file

@ -126,7 +126,7 @@ def get_distribution_template() -> DistributionTemplate:
),
},
run_config_env_vars={
"LLAMASTACK_PORT": (
"LLAMA_STACK_PORT": (
"5001",
"Port for the Llama Stack distribution server",
),

View file

@ -132,7 +132,7 @@ def get_distribution_template() -> DistributionTemplate:
),
},
run_config_env_vars={
"LLAMASTACK_PORT": (
"LLAMA_STACK_PORT": (
"5001",
"Port for the Llama Stack distribution server",
),

View file

@ -99,7 +99,7 @@ def get_distribution_template() -> DistributionTemplate:
),
},
run_config_env_vars={
"LLAMASTACK_PORT": (
"LLAMA_STACK_PORT": (
"5001",
"Port for the Llama Stack distribution server",
),

View file

@ -120,7 +120,7 @@ def get_distribution_template() -> DistributionTemplate:
),
},
run_config_env_vars={
"LLAMASTACK_PORT": (
"LLAMA_STACK_PORT": (
"5001",
"Port for the Llama Stack distribution server",
),

View file

@ -125,7 +125,7 @@ def get_distribution_template() -> DistributionTemplate:
),
},
run_config_env_vars={
"LLAMASTACK_PORT": (
"LLAMA_STACK_PORT": (
"5001",
"Port for the Llama Stack distribution server",
),

View file

@ -127,7 +127,7 @@ def get_distribution_template() -> DistributionTemplate:
),
},
run_config_env_vars={
"LLAMASTACK_PORT": (
"LLAMA_STACK_PORT": (
"5001",
"Port for the Llama Stack distribution server",
),

View file

@ -112,7 +112,7 @@ def get_distribution_template() -> DistributionTemplate:
),
},
run_config_env_vars={
"LLAMASTACK_PORT": (
"LLAMA_STACK_PORT": (
"5001",
"Port for the Llama Stack distribution server",
),

View file

@ -99,7 +99,7 @@ def get_distribution_template() -> DistributionTemplate:
),
},
run_config_env_vars={
"LLAMASTACK_PORT": (
"LLAMA_STACK_PORT": (
"5001",
"Port for the Llama Stack distribution server",
),