mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 20:27:35 +00:00
configure from docker image name
This commit is contained in:
parent
4be6b2732d
commit
3fe9ca7540
2 changed files with 61 additions and 5 deletions
26
llama_toolchain/core/configure_container.sh
Executable file
26
llama_toolchain/core/configure_container.sh
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
error_handler() {
|
||||
echo "Error occurred in script at line: ${1}" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
trap 'error_handler ${LINENO}' ERR
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "Usage: $0 <container name> <build file path>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker_image="$1"
|
||||
build_file_path="$2"
|
||||
|
||||
podman run -it $docker_image cat build.yaml >> ./$build_file_path
|
Loading…
Add table
Add a link
Reference in a new issue