Elffuss BraidHub

kikocis/llama-stack public

Add DOCKER_BINARY / DOCKER_OPTS to all scripts
Changeset9633932f9aaeb9ed5c055d489d74af09a150011fd6ee41a98508c0c5230e34e7
AuthorAshwin Bharambe <ashwin@meta.com> · 2024-09-19 10:26 -07:00
CommitterAshwin Bharambe <ashwin@meta.com> · 2024-09-19 10:26 -07:00
Parentse32827e3ae46

Browse the files at this changeset

4 files changed

modified .gitignore +1 −0
@@ -4,3 +4,4 @@
44 *.egg-info
55 dev_requirements.txt
66 build
7+.DS_Store
modified llama_stack/distribution/build_container.sh +1 −1
@@ -114,4 +114,4 @@
114114 echo "You can run it with: podman run -p 8000:8000 $image_name"
115115
116116 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 @@
66 # This source code is licensed under the terms described in the LICENSE file in
77 # the root directory of this source tree.
88
9+DOCKER_BINARY=${DOCKER_BINARY:-docker}
10+DOCKER_OPTS=${DOCKER_OPTS:-}
11+
912 set -euo pipefail
1013
1114 error_handler() {
@@ -25,7 +28,7 @@
2528 container_build_dir="/app/builds"
2629
2730 set -x
28-podman run -it \
31+$DOCKER_BINARY run $DOCKER_OPTS -it \
2932 -v $host_build_dir:$container_build_dir \
3033 $docker_image \
3134 llama stack configure ./llamastack-build.yaml --output-dir $container_build_dir
modified llama_stack/distribution/start_container.sh +4 −1
@@ -6,6 +6,9 @@
66 # This source code is licensed under the terms described in the LICENSE file in
77 # the root directory of this source tree.
88
9+DOCKER_BINARY=${DOCKER_BINARY:-docker}
10+DOCKER_OPTS=${DOCKER_OPTS:-}
11+
912 set -euo pipefail
1013
1114 RED='\033[0;31m'
@@ -34,7 +37,7 @@
3437 shift
3538
3639 set -x
37-podman run -it \
40+$DOCKER_BINARY run $DOCKER_OPTS -it \
3841 -p $port:$port \
3942 -v "$yaml_config:/app/config.yaml" \
4043 $docker_image \