mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-12 12:06:04 +00:00
add docker logs
This commit is contained in:
parent
96b543814e
commit
a4d9b0e303
2 changed files with 5 additions and 2 deletions
|
|
@ -82,11 +82,14 @@ runs:
|
||||||
echo "No recording changes"
|
echo "No recording changes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Write inference logs to file
|
- name: Write docker logs to file
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo docker logs ollama > ollama-${{ inputs.inference-mode }}.log || true
|
sudo docker logs ollama > ollama-${{ inputs.inference-mode }}.log || true
|
||||||
|
distro_name=$(echo "${{ inputs.stack-config }}" | sed 's/^docker://' | sed 's/^server://')
|
||||||
|
stack_container_name="llama-stack-test-$distro_name"
|
||||||
|
sudo docker logs $stack_container_name > docker-${distro_name}-${{ inputs.inference-mode }}.log || true
|
||||||
|
|
||||||
- name: Upload logs
|
- name: Upload logs
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
|
|
|
||||||
|
|
@ -236,7 +236,7 @@ start_container() {
|
||||||
echo "=== Starting Docker Container ==="
|
echo "=== Starting Docker Container ==="
|
||||||
|
|
||||||
# Get the repo root for volume mount
|
# Get the repo root for volume mount
|
||||||
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)
|
||||||
REPO_ROOT=$(cd "$SCRIPT_DIR/.." && pwd)
|
REPO_ROOT=$(cd "$SCRIPT_DIR/.." && pwd)
|
||||||
|
|
||||||
# Determine the actual image name (may have localhost/ prefix)
|
# Determine the actual image name (may have localhost/ prefix)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue