kikocis/llama-stack public
Changesets · Branches · Tags · Compare
| Changeset | 9633932f9aaeb9ed5c055d489d74af09a150011fd6ee41a98508c0c5230e34e7 |
|---|---|
| Author | Ashwin Bharambe <ashwin@meta.com> · 2024-09-19 10:26 -07:00 |
| Committer | Ashwin Bharambe <ashwin@meta.com> · 2024-09-19 10:26 -07:00 |
| Parents | e32827e3ae46 |
4 files changed
modified .gitignore +1 −0
| @@ -4,3 +4,4 @@ | ||
| 4 | 4 | *.egg-info |
| 5 | 5 | dev_requirements.txt |
| 6 | 6 | build |
| 7 | +.DS_Store |
modified llama_stack/distribution/build_container.sh +1 −1
| @@ -114,4 +114,4 @@ | ||
| 114 | 114 | echo "You can run it with: podman run -p 8000:8000 $image_name" |
| 115 | 115 | |
| 116 | 116 | echo "Checking image builds..." |
| 117 | -podman run -it $image_name cat llamastack-build.yaml | |
| 117 | +$DOCKER_BINARY run $DOCKER_OPTS -it $image_name cat llamastack-build.yaml |
modified llama_stack/distribution/configure_container.sh +4 −1
| @@ -6,6 +6,9 @@ | ||
| 6 | 6 | # This source code is licensed under the terms described in the LICENSE file in |
| 7 | 7 | # the root directory of this source tree. |
| 8 | 8 | |
| 9 | +DOCKER_BINARY=${DOCKER_BINARY:-docker} | |
| 10 | +DOCKER_OPTS=${DOCKER_OPTS:-} | |
| 11 | + | |
| 9 | 12 | set -euo pipefail |
| 10 | 13 | |
| 11 | 14 | error_handler() { |
| @@ -25,7 +28,7 @@ | ||
| 25 | 28 | container_build_dir="/app/builds" |
| 26 | 29 | |
| 27 | 30 | set -x |
| 28 | -podman run -it \ | |
| 31 | +$DOCKER_BINARY run $DOCKER_OPTS -it \ | |
| 29 | 32 | -v $host_build_dir:$container_build_dir \ |
| 30 | 33 | $docker_image \ |
| 31 | 34 | llama stack configure ./llamastack-build.yaml --output-dir $container_build_dir |
modified llama_stack/distribution/start_container.sh +4 −1
| @@ -6,6 +6,9 @@ | ||
| 6 | 6 | # This source code is licensed under the terms described in the LICENSE file in |
| 7 | 7 | # the root directory of this source tree. |
| 8 | 8 | |
| 9 | +DOCKER_BINARY=${DOCKER_BINARY:-docker} | |
| 10 | +DOCKER_OPTS=${DOCKER_OPTS:-} | |
| 11 | + | |
| 9 | 12 | set -euo pipefail |
| 10 | 13 | |
| 11 | 14 | RED='\033[0;31m' |
| @@ -34,7 +37,7 @@ | ||
| 34 | 37 | shift |
| 35 | 38 | |
| 36 | 39 | set -x |
| 37 | -podman run -it \ | |
| 40 | +$DOCKER_BINARY run $DOCKER_OPTS -it \ | |
| 38 | 41 | -p $port:$port \ |
| 39 | 42 | -v "$yaml_config:/app/config.yaml" \ |
| 40 | 43 | $docker_image \ |